Skip to content

Enhancement: extend spo group get to get a single associated group #3545

@milanholemans

Description

@milanholemans

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions