Skip to content

spo roledefinition list

Gets list of role definitions for the specified site


m365 spo roledefinition list [options]


-u, --webUrl <webUrl>
URL of the site for which to retrieve role definitions.
-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


Return list of role definitions for the given site

m365 spo roledefinition list --webUrl


    "BasePermissions": {
      "High": 2147483647,
      "Low": 4294967295
    "Description": "Has full control.",
    "Hidden": false,
    "Id": 1073741829,
    "Name": "Full Control",
    "Order": 1,
    "RoleTypeKind": 5,
    "BasePermissionsValue": [
    "RoleTypeKindValue": "Administrator"
Id          Name
----------  -----------------------
1073741829  Full Control
1073741829,Full Control