spo web roleinheritance reset
Restores role inheritance of subsite.
Usage
m365 spo web roleinheritance reset [options]
Options
-u, --webUrl <webUrl>
URL of the site
-f, --force
Do not prompt for confirmation before resetting role inheritance.
-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 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
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Examples
Restore role inheritance of subsite https://contoso.sharepoint.com/sites/project-x
m365 spo web roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x
Restore role inheritance of subsite https://contoso.sharepoint.com/sites/project-x without prompting for confirmation
m365 spo web roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --force
Response
The command won't return a response on success.