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