Skip to content

New command: 馃攼 spo folder roleinheritance reset #3603

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions