spo folder roleinheritance reset
Restores the role inheritance of a folder.
Usage
m365 spo folder roleinheritance reset [options]
Options
-u, --webUrl <webUrl>
URL of the site where the folder is located.
-f, --folderUrl <folderUrl>
The server- or site-relative URL of the folder.
--confirm
Don't prompt for confirmation to reset role inheritance of the folder.
-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 isfull
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Examples
Reset inheritance of folder with a specific site-relative URL
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
Reset inheritance of folder with a specific server-relative URL. It will not prompt for confirmation before resetting.
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "/sites/project-x/Shared Documents/TestFolder" --confirm
Reset inheritance of the specified root folder for the library with a specific server-relative URL. It will not prompt for confirmation before resetting.
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "/sites/project-x/Shared Documents" --confirm