powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[FEATURE] Batch for Set-PnPListItemPermission

Open sp00kyDD opened this issue 2 years ago • 1 comments

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"

sp00kyDD avatar Oct 17 '23 12:10 sp00kyDD

It looks like there's no progress on this feature request - not that it helps but I'm looking currently at resetting permissions on about 300k items just for one set of SharePoint sites, and I can't batch the requests - so it crawls at about 5k items per hour. Batching would potentially make it anywhere from 4x to 10x as fast and save me literally days.

DavidRawling avatar May 13 '25 07:05 DavidRawling