spo group list [options]
Lists all the groups within specific web
-u, --webUrl <webUrl>
-o, --output [output]
json,text
text
--verbose
--debug
Lists all the groups for web https://contoso.sharepoint.com/sites/mysite
spo group list --webUrl "https://contoso.sharepoint.com/sites/mysite"
GET https://contoso.sharepoint.com/sites/mysite/_api/web/sitegroups
Get-PnPGroup - https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpgroup?view=sharepoint-ps
Usage
spo group list [options]Description
Lists all the groups within specific web
Options
-u, --webUrl <webUrl>-o, --output [output]json,text. Defaulttext--verbose--debugExample
Lists all the groups for web https://contoso.sharepoint.com/sites/mysite
Rest APIs reference
Additional Information
Get-PnPGroup -
https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpgroup?view=sharepoint-ps