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

New sample script: make a list or library read-only for all users

Open plamber opened this issue 5 years ago โ€ข 14 comments

Docs
Author Salaudeen Rajack
Original Post link
Description Shows how to make a list or library read-only for all users
Keywords SharePoint Online, Governance

plamber avatar Feb 27 '21 06:02 plamber

Hi Waldek, May I take this?

ktskumar avatar May 24 '21 10:05 ktskumar

Hi @ktskumar , All yours. Thank you for your help.

Br

plamber avatar May 24 '21 10:05 plamber

Hi @plamber, We should need a breakRoleInheritance method for the List / Library to set the unique permissions. Other options would be UpdateDocumentSharingInfo method for the List.

I couldn't find these options in the CLI. If we already have, please let me know. Otherwise, create a new issue for creating a new command.

Regards, @ktskumar

ktskumar avatar Jun 15 '21 17:06 ktskumar

@pnp/cli-for-microsoft-365-maintainers any suggestions?

plamber avatar Jun 15 '21 17:06 plamber

Correct, we don't have the necessary command. Would you like to propose a spec for it @ktskumar?

waldekmastykarz avatar Jun 16 '21 08:06 waldekmastykarz

Sure @waldekmastykarz, I'll prepare the spec.

ktskumar avatar Jun 18 '21 16:06 ktskumar

Awesome, I appreciate your help @ktskumar

waldekmastykarz avatar Jun 21 '21 06:06 waldekmastykarz

Hey @ktskumar, are you still working on this?

waldekmastykarz avatar Nov 15 '21 20:11 waldekmastykarz

Didn't get time on this. Will try this by next week.

ktskumar avatar Nov 16 '21 01:11 ktskumar

Hey @ktskumar ๐Ÿ‘‹ Are you still working on this?

garrytrinder avatar Jul 01 '22 21:07 garrytrinder

In the meantime we do have a list roleinheritance break command by the way.

https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-roleinheritance-break/

martinlingstuyl avatar Jul 02 '22 14:07 martinlingstuyl

Good spot @martinlingstuyl ๐Ÿ‘

As this is no longer blocked I've moved this issue In progress.

garrytrinder avatar Jul 13 '22 20:07 garrytrinder

@ktskumar, are you still working on this, or should we unassign you?

martinlingstuyl avatar Aug 28 '22 11:08 martinlingstuyl

Resetting as available for picking due to lack of response

waldekmastykarz avatar Sep 05 '22 17:09 waldekmastykarz

Can I work on this ๐Ÿงน

nicodecleyre avatar Apr 27 '23 18:04 nicodecleyre

@nicodecleyre all yours ๐Ÿ‘

Adam-it avatar Apr 27 '23 18:04 Adam-it