forked from pnp/cli-microsoft365
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes 'spo group member add' on private channel sites. Closes pnp#6104
- Loading branch information
1 parent
0e51c6a
commit 68b0a24
Showing
5 changed files
with
471 additions
and
567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,17 +110,21 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA -- | |
```json | ||
[ | ||
{ | ||
"AllowedRoles": [ | ||
0 | ||
], | ||
"CurrentRole": 0, | ||
"DisplayName": "John Doe", | ||
"Email": "[email protected]", | ||
"InvitationLink": null, | ||
"IsUserKnown": true, | ||
"Message": null, | ||
"Status": true, | ||
"User": "i:0#.f|membership|[email protected]" | ||
"Id": 11, | ||
"IsHiddenInUI": false, | ||
"LoginName": "i:0#.f|membership|[email protected]", | ||
"Title": "Adele Vance", | ||
"PrincipalType": 1, | ||
"Email": "[email protected]", | ||
"Expiration": "", | ||
"IsEmailAuthenticationGuestUser": false, | ||
"IsShareByEmailGuestUser": false, | ||
"IsSiteAdmin": false, | ||
"UserId": { | ||
"NameId": "10032001f5ac2029", | ||
"NameIdIssuer": "urn:federation:microsoftonline" | ||
}, | ||
"UserPrincipalName": "[email protected]" | ||
} | ||
] | ||
``` | ||
|
@@ -129,39 +133,42 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA -- | |
<TabItem value="Text"> | ||
|
||
```text | ||
DisplayName Email | ||
----------- --------------------------------- | ||
John Doe john.doe@contoso.onmicrosoft.com | ||
Title UserPrincipalName | ||
----------- ------------------------------------- | ||
Adele Vance Adele.Vance@contoso.onmicrosoft.com | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="CSV"> | ||
|
||
```csv | ||
DisplayName,Email | ||
John Doe,john.doe@contoso.onmicrosoft.com | ||
Id,IsHiddenInUI,LoginName,Title,PrincipalType,Email,Expiration,IsEmailAuthenticationGuestUser,IsShareByEmailGuestUser,IsSiteAdmin,UserPrincipalName | ||
11,,i:0#.f|membership|[email protected],Adele Vance,1,[email protected],,,,,adelev@contoso.onmicrosoft.com | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="Markdown"> | ||
|
||
```md | ||
# spo group member add --webUrl "https://contoso.sharepoint.com" --groupId "5" --aadGroupIds "f2fb2f10-cfd2-4054-8ffd-64533657a5ab" | ||
# spo group member add --webUrl "https://contoso.sharepoint.com/sites/Marketing" --groupId "5" --userNames "[email protected]" | ||
|
||
Date: 13/2/2023 | ||
Date: 10/07/2024 | ||
|
||
## All Company Members | ||
## Adele Vance (11) | ||
|
||
Property | Value | ||
---------|------- | ||
CurrentRole | 0 | ||
DisplayName | All Company Members | ||
Email | [email protected] | ||
InvitationLink | null | ||
IsUserKnown | true | ||
Message | null | ||
Status | true | ||
User | c:0o.c\|federateddirectoryclaimprovider\|f2fb2f10-cfd2-4054-8ffd-64533657a5ab | ||
Id | 11 | ||
IsHiddenInUI | false | ||
LoginName | i:0#.f\|membership\|[email protected] | ||
Title | Adele Vance | ||
PrincipalType | 1 | ||
Email | [email protected] | ||
Expiration | | ||
IsEmailAuthenticationGuestUser | false | ||
IsShareByEmailGuestUser | false | ||
IsSiteAdmin | false | ||
UserPrincipalName | [email protected] | ||
``` | ||
|
||
</TabItem> | ||
|
Oops, something went wrong.