pnp / pnp/powershell

[FEATURE] Batch for Set-PnPListItemPermission

Open
#3,511 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.