Extend the command spo group list to retrieve all associated groups.
| Option |
Description |
--associatedGroupsOnly |
Get only the associated visitor, member and owner groups of the site. |
Examples
List all associated groups for a specific site
m365 spo groups list --webUrl https://contoso.sharepoint.com/sites/project-x --associatedGroupsOnly
Additional Info
Request
GET https://tenant.sharepoint.com/sites/project-x/_api/Web?$expand=AssociatedOwnerGroup,AssociatedMemberGroup,AssociatedVisitorGroup&$select=AssociatedOwnerGroup,AssociatedMemberGroup,AssociatedVisitorGroup
Extend the command
spo group listto retrieve all associated groups.--associatedGroupsOnlyExamples
List all associated groups for a specific site
Additional Info
Request