Skip to content

spo roledefinition get

Gets specified role definition from web


m365 spo roledefinition get [options]


-u, --webUrl <webUrl>
URL of the site for which to retrieve the role definition
-i, --id <id>
The Id of the role definition to retrieve.
-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. Default json
Runs command with verbose logging
Runs command with debug logging


Retrieve the role definition for site with id 1

m365 spo roledefinition get --webUrl --id 1