[FEATURE] Batch for Set-PnPListItemPermission
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 904
- Forks
- 407
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 10
Description
Is your feature request related to a problem? Please describe.
I need to set different permissions to the same item and it takes quite long :-(
Describe the solution you'd like
Please add Set-PnPListItemPermission to batch request to add multiple roles at once?
Describe alternatives you've considered
N/A
Additional context
Example
Set-PnPListItemPermission -List $myList -Identity $myRisk -ClearExisting -User "myuser" -AddRole "Full Control"
Set-PnPListItemPermission -List $myList -Identity $myRisk -User "spooky" -RemoveRole "Full Control"
Set-PnPListItemPermission -List $myList -Identity $myRisk -Group "admin" -AddRole "my_create"
Set-PnPListItemPermission -List $myList -Identity $myRisk -Group "admin" -AddRole "my_read"
Set-PnPListItemPermission -List $myList -Identity $myRisk -Group "admin" -AddRole "my_update"
Set-PnPListItemPermission -List $myList -Identity $myRisk -Group "admin" -AddRole "my_delete"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the Set-PnPListItemPermission entry point and trace how its permission operations are sent to SharePoint. Compare that flow with the requested batch request behavior and the example's multiple add and remove operations. Done means equivalent operations can be submitted together while preserving ClearExisting, user, group, role, add, and remove behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- api, authorization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100