spo group member list
List the members of a SharePoint Group
Usage
m365 spo group member list [options]
Options
-u, --webUrl <webUrl>URL of the SharePoint site
--groupId [groupId]Id of the SharePoint group. Use either
groupNameorgroupId, but not both--groupName [groupName]Name of the SharePoint group. Use either
groupNameorgroupId, but not both
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,response,full. Default isfull.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
List the members of the group with ID 5 for web https://contoso.sharepoint.com/sites/SiteA
m365 spo group member list --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5
List the members of the group with name Contoso Site Members for web https://contoso.sharepoint.com/sites/SiteA
m365 spo group member list --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Members"