Skip to content

[FEATURE] Can a batch function be added to "Add-PnPGroupMember" #3612

@hunandy14

Description

@hunandy14

Can a batch function be added to Add-PnPGroupMember

For adding and deleting group permissions,
https://pnp.github.io/powershell/cmdlets/Add-PnPGroupMember.html

can there be a batch function similar toAdd-PnPListItem?
https://pnp.github.io/powershell/cmdlets/Invoke-PnPBatch.html#example-1

I need to add a large number of groups, and without this feature, it will be very time-consuming.

example

$batch = New-PnPBatch

Add-PnPGroupMember -Identity "AdminGroup" -LoginName "user01@example.com" -Batch $batch
Add-PnPGroupMember -Identity "AdminGroup" -LoginName "user02@example.com" -Batch $batch

Invoke-PnPBatch -Batch $batch

Thank you for your maintenance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions