Skip to content

New command: 🔐 spo folder roleinheritance reset #3603

@Adam-it

Description

@Adam-it

Usage

m365 spo folder roleinheritance reset [options]

Description

Restores the role inheritance of folder

Options

Option Description
-u, --webUrl <webUrl> URL of the site where the file for which to reset role inheritance is located
-f, --folderUrl <folderUrl> The site-relative URL of the folder
--confirm Don't prompt for confirmation

Examples

Reset inheritance of folder with site-relative url /Shared Documents 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"

Additional Info

we may also reuse command we already have using Cli.executeCommandWithOutput. We may reuse the m365 spo folder get command and the m365 spo listitem roleinheritance reset.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions