Skip to content

Enhancement: extend spo group list to retrieve associated groups #3546

@milanholemans

Description

@milanholemans

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions