spo roledefinition remove¶
Removes the role definition from the specified site
Usage¶
m365 spo roledefinition remove [options]
Options¶
-u, --webUrl <webUrl>
- URL of the site from which role should be removed
-i, --id <id>
- ID of the role definition to remove
--confirm
- Don't prompt for confirming removing the role definition
-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,csv
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Remove the role definition from site https://contoso.sharepoint.com/sites/project-x with id 1
m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1
Remove the role definition from site https://contoso.sharepoint.com/sites/project-x with id 1 and don't prompt for confirmation
m365 spo roledefinition remove --webUrl https://contoso.sharepoint.com/sites/project-x --id 1 --confirm