-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…3651) * Feature #3612 - Added Batch parameter to Add-PnPGroupMember cmdlet * Update CHANGELOG.md --------- Co-authored-by: Gautam Sheth <[email protected]>
- Loading branch information
1 parent
083de68
commit 451a3c6
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,12 @@ Add-PnPGroupMember -Group <GroupPipeBind> -EmailAddress <String> [-SendEmail] [- | |
[-Connection <PnPConnection>] | ||
``` | ||
|
||
### Batched | ||
```powershell | ||
Add-PnPGroupMember -LoginName <String> -Group <GroupPipeBind> | ||
[-Connection <PnPConnection>] -Batch <PnPBatch> | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Allows to add new user to SharePoint group. The SharePoint group may be specified either by id, name or related object. | ||
|
@@ -46,6 +52,16 @@ Add-PnPGroupMember -LoginName [email protected] -Group 5 | |
|
||
Add the specified user to the SharePoint group with Id 5 | ||
|
||
### EXAMPLE 3 | ||
```powershell | ||
$batch = New-PnPBatch | ||
Add-PnPGroupMember -LoginName [email protected] -Group 5 -Batch $batch | ||
Add-PnPGroupMember -LoginName [email protected] -Group 5 -Batch $batch | ||
Invoke-PnPBatch $batch | ||
``` | ||
|
||
Add the specified users to the SharePoint group with Id 5 in a batch. | ||
|
||
## PARAMETERS | ||
|
||
### -Connection | ||
|
@@ -130,6 +146,19 @@ Accept pipeline input: False | |
Accept wildcard characters: False | ||
``` | ||
### -Batch | ||
```yaml | ||
Type: PnPBatch | ||
Parameter Sets: Batched | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
## RELATED LINKS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters