Skip to content

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
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Get list of users in web https://contoso.sharepoint.com/sites/project-x

m365 spo user list --webUrl https://contoso.sharepoint.com/sites/project-x