Skip to content

Commit

Permalink
Fixes 'spo group member add' on private channel sites. Closes pnp#6104
Browse files Browse the repository at this point in the history
  • Loading branch information
milanholemans authored and Jwaegebaert committed Jul 13, 2024
1 parent 0e51c6a commit 68b0a24
Show file tree
Hide file tree
Showing 5 changed files with 471 additions and 567 deletions.
61 changes: 34 additions & 27 deletions docs/docs/cmd/spo/group/group-member-add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
}
]
```
Expand All @@ -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>
Expand Down
Loading

0 comments on commit 68b0a24

Please sign in to comment.