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})
Usage
m365 spo web roleinheritance break [options]
Description
break inheritance of subsite. Keeping existing permissions is the default behavior.
Options
-u, --webUrl <webUrl>-c --clearExistingPermissions--confirmExamples
break role inheritance on web with keeping existing permissions
break role inheritance on web with clearing existing permissions
Additional Info
I did some research and for this command we may use the POST request