spo user list
Lists all the users within specific web
Usage
m365 spo user list [options]
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,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Get list of users in a web
m365 spo user list --webUrl https://contoso.sharepoint.com/sites/project-x
Response
- JSON
- Text
- CSV
- Markdown
[
{
"Id": 10,
"IsHiddenInUI": false,
"LoginName": "i:0#.f|membership|johndoe@contoso.onmicrosoft.com",
"Title": "John DOe",
"PrincipalType": 1,
"Email": "johndoe@contoso.onmicrosoft.com",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": {
"NameId": "100320022ec308a7",
"NameIdIssuer": "urn:federation:microsoftonline"
},
"UserPrincipalName": "johndoe@contoso.onmicrosoft.com"
}
]
Id Title LoginName
--- -------- -------------------------------------------------
10 John Doe i:0#.f|membership|johndoe@contoso.onmicrosoft.com
Id,Title,LoginName
10,John Doe,i:0#.f|membership|johndoe@contoso.onmicrosoft.com
# spo user list --webUrl "https://contoso.sharepoint.com/sites/project-x"
Date: 4/10/2023
## John Doe (10)
Property | Value
---------|-------
Id | 7
IsHiddenInUI | false
LoginName | c:0o.c\|membership\|johndoe@contoso.onmicrosoft.com
Title | John Doe
PrincipalType | 1
Email | johndoe@contoso.onmicrosoft.com
Expiration |
IsEmailAuthenticationGuestUser | false
IsShareByEmailGuestUser | false
IsSiteAdmin | false
UserPrincipalName | johndoe@contoso.onmicrosoft.com