Skip to main content

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.

--folderUrl <folderUrl>

The server- or site-relative decoded URL of the folder.

-f, --force

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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--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" --force

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" --force

Response

The command won't return a response on success.

CTRL + M