-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
641 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import Global from '/docs/cmd/_global.mdx'; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# spo tenant site membership list | ||
|
||
Retrieve information about default site groups' membership | ||
|
||
## Usage | ||
|
||
```sh | ||
m365 spo tenant site membership list [options] | ||
``` | ||
|
||
## Options | ||
|
||
```md definition-list | ||
`-u, --siteUrl <siteUrl>` | ||
: The URL of the site. | ||
|
||
`-r, --role [role]` | ||
: Filter the results to include only users with the specified roles: 'Owner', 'Member', or 'Visitor'.. | ||
|
||
``` | ||
|
||
<Global /> | ||
|
||
## Remarks | ||
|
||
To execute this command successfully, ensure you are logged in to the CLI for M365 with an account that has SharePoint admin permissions. For other scenarios, refer to the `spo web get --withGroups` and `spo group member list` commands. | ||
|
||
## Examples | ||
|
||
Retrieves information about default site groups' owners, members, and visitors of the site. | ||
|
||
```sh | ||
m365 spo tenant site membership list --siteUrl https://contoso.sharepoint.com | ||
``` | ||
|
||
Retrieves information about site owners. | ||
|
||
```sh | ||
m365 spo tenant site membership list --siteUrl https://contoso.sharepoint.com --role Owner | ||
``` | ||
|
||
## Response | ||
|
||
<Tabs> | ||
<TabItem value="JSON"> | ||
|
||
```json | ||
{ | ||
"AssociatedOwnerGroup": [ | ||
{ | ||
"email": "[email protected]", | ||
"loginName": "i:0#.f|membership|[email protected]", | ||
"name": "UserName", | ||
"userPrincipalName": "[email protected]" | ||
} | ||
], | ||
"AssociatedMemberGroup": [ | ||
{ | ||
"email": "[email protected]", | ||
"loginName": "i:0#.f|membership|[email protected]", | ||
"name": "internal", | ||
"userPrincipalName": "[email protected]" | ||
} | ||
], | ||
"AssociatedVisitorGroup": [ | ||
{ | ||
"email": "", | ||
"loginName": "c:0-.f|rolemanager|spo-grid-all-users/dc109ffd-4298-487e-9cbc-6b9b1a2cd3e2", | ||
"name": "Everyone except external users", | ||
"userPrincipalName": null | ||
} | ||
] | ||
} | ||
``` | ||
</TabItem> | ||
<TabItem value="Text"> | ||
|
||
```text | ||
AssociatedMemberGroup : [{"email":"[email protected]","loginName":"i:0#.f|membership|[email protected]","name":"internal","userPrincipalName":"[email protected]"}] | ||
AssociatedOwnerGroup : [{"email":"[email protected]","loginName":"i:0#.f|membership|[email protected]","name":"UserName","userPrincipalName":"[email protected]"}] | ||
AssociatedVisitorGroup: [{"email":"","loginName":"c:0-.f|rolemanager|spo-grid-all-users/dc109ffd-4298-487e-9cbc-6b9b1a2cd3e2","name":"Everyone except external users","userPrincipalName":null}] | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export interface SiteProperties { | ||
SiteId: string; | ||
Status: string; | ||
Title: string; | ||
Url: string; | ||
|
Oops, something went wrong.