New command: 🔐 spo web roleinheritance reset
Usage
m365 spo web roleinheritance reset [options]
Description
reset inheritance of subsite.
Options
| Option | Description |
|---|---|
-u, --webUrl <webUrl> |
URL of the site |
Examples
reset role inheritance on web
m365 spo web roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/contoso-sales"
Additional Info
I did some research and for this command we may use the POST request
/_api/web/resetroleinheritance
@pnp/cli-for-microsoft-365-maintainers I think this spec is quite straight forward ? I think we may open it up if you agree and I could take it.
Looks great, but could you change the word subsite into web or site?
Looks great, but could you change the word subsite into web or site?
"Yes we can". But won't it be misleading for the end user as actually you may break role inheritance on a subweb/site which inherits from parent which will be root web 🤔
Oh wait, maybe you're correct! Subsite it is :)
Ok @martinlingstuyl then if you have bo other comments then I will take this one for today