cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

New command: 🔐 spo web roleinheritance reset

Open Adam-it opened this issue 3 years ago • 5 comments

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

Adam-it avatar Aug 02 '22 22:08 Adam-it

@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.

Adam-it avatar Aug 06 '22 21:08 Adam-it

Looks great, but could you change the word subsite into web or site?

martinlingstuyl avatar Aug 07 '22 06:08 martinlingstuyl

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 🤔

Adam-it avatar Aug 07 '22 07:08 Adam-it

Oh wait, maybe you're correct! Subsite it is :)

martinlingstuyl avatar Aug 07 '22 08:08 martinlingstuyl

Ok @martinlingstuyl then if you have bo other comments then I will take this one for today

Adam-it avatar Aug 07 '22 18:08 Adam-it