Extend the spo group get command to get associated groups.
| Option |
Description |
--associatedGroup [associatedGroup] |
Retrieve an associated group: Visitors, Members or Owners. |
Examples
Get the associated owner group of a specific site
m365 spo group get --webUrl https://contoso.sharepoint.com/sites/project-x --associatedGroup Owners
Additional Info
Requests
Visitors
GET https://tenant.sharepoint.com/sites/project-x/_api/Web/AssociatedVisitorGroup
Members
GET https://tenant.sharepoint.com/sites/project-x/_api/Web/AssociatedMemberGroup
Owners
GET https://tenant.sharepoint.com/sites/project-x/_api/Web/AssociatedOwnerGroup
Extend the
spo group getcommand to get associated groups.--associatedGroup [associatedGroup]Visitors,MembersorOwners.Examples
Get the associated owner group of a specific site
Additional Info
Requests
Visitors
Members
Owners