Skip to content

New command: 🔐 spo web roleinheritance break #3547

@Adam-it

Description

@Adam-it

Usage

m365 spo web roleinheritance break [options]

Description

break inheritance of subsite. Keeping existing permissions is the default behavior.

Options

Option Description
-u, --webUrl <webUrl> URL of the site
-c --clearExistingPermissions Flag if used clears all roles from the web
--confirm Don't prompt for confirmation

Examples

break role inheritance on web with keeping existing permissions

m365 spo web roleinheritance break  --webUrl "https://contoso.sharepoint.com/sites/contoso-sales"

break role inheritance on web with clearing existing permissions

m365 spo web roleinheritance break  --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --clearExistingPermissions

Additional Info

I did some research and for this command we may use the POST request

/_api/web/breakroleinheritance(${TrueOrFalseHere})

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions