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 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 site-relative url Shared Documents/TestFolder located in site https://contoso.sharepoint.com/sites/project-x.
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
Reset inheritance of folder with server-relative url /sites/project-x/Shared Documents/TestFolder located in site https://contoso.sharepoint.com/sites/project-x. 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 the server-relative url /sites/project-x/Shared Documents located in site _https://contoso.sharepoint.com/sites/project-x. 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