Skip to content

spo user list

Lists all the users within specific web


m365 spo user list [options]


-u, --webUrl <webUrl>
URL of the web to list the users from
-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 is full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
Runs command with verbose logging
Runs command with debug logging


Get list of users in web

m365 spo user list --webUrl


    "Id": 10,
    "IsHiddenInUI": false,
    "LoginName": "i:0#.f|membership|",
    "Title": "John DOe",
    "PrincipalType": 1,
    "Email": "",
    "Expiration": "",
    "IsEmailAuthenticationGuestUser": false,
    "IsShareByEmailGuestUser": false,
    "IsSiteAdmin": false,
    "UserId": {
      "NameId": "100320022ec308a7",
      "NameIdIssuer": "urn:federation:microsoftonline"
    "UserPrincipalName": ""
Id          Title                           LoginName
----------  ------------------------------  --------------------------------------------------------------------------
10          John Doe                        i:0#.f|membership|
10,John Doe,i:0#.f|membership|