Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hunandy14 opened this issue Dec 4, 2023 · 2 comments · Fixed by #3651
Closed

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

hunandy14 opened this issue Dec 4, 2023 · 2 comments · Fixed by #3651
Assignees
Labels
enhancement New feature or request

Comments

@hunandy14
Copy link

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 "[email protected]" -Batch $batch
Add-PnPGroupMember -Identity "AdminGroup" -LoginName "[email protected]" -Batch $batch

Invoke-PnPBatch -Batch $batch

Thank you for your maintenance.

@hunandy14 hunandy14 added the enhancement New feature or request label Dec 4, 2023
@gautamdsheth gautamdsheth self-assigned this Dec 27, 2023
gautamdsheth pushed a commit to gautamdsheth/powershell that referenced this issue Dec 27, 2023
gautamdsheth added a commit that referenced this issue Jan 19, 2024
…3651)

* Feature #3612 - Added Batch parameter to Add-PnPGroupMember cmdlet

* Update CHANGELOG.md

---------

Co-authored-by: Gautam Sheth <[email protected]>
@gautamdsheth
Copy link
Collaborator

hi @hunandy14 , have added a batch parameter to bulk add users.
It will be available in tomorrow's nightly builds as well as next major versions when we release it.

@hunandy14
Copy link
Author

hunandy14 commented Jan 20, 2024

hi @hunandy14 , have added a batch parameter to bulk add users. It will be available in tomorrow's nightly builds as well as next major versions when we release it.

@gautamdsheth Thank you very much for your protection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants