-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add support for removing multiple users from a Teams team (#…
…4650) Co-authored-by: Gautam Sheth <[email protected]>
- Loading branch information
1 parent
a891180
commit 2e86810
Showing
3 changed files
with
70 additions
and
9 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Remove-PnPTeamsUser.htm | |
|
||
**Required Permissions** | ||
|
||
* Microsoft Graph API: Group.ReadWrite.All | ||
* Microsoft Graph API: Group.ReadWrite.All, TeamMember.ReadWrite.All | ||
|
||
Removes a user from a team. | ||
|
||
|
@@ -44,6 +44,13 @@ Remove-PnPTeamsUser -Team MyTeam -User [email protected] -Role Owner | |
|
||
Removes the user [email protected] from the owners of the team, but retains the user as a member. | ||
|
||
### EXAMPLE 3 | ||
```powershell | ||
Remove-PnPTeamsUser -Team MyTeam -Users "[email protected]","[email protected]","[email protected]" | ||
``` | ||
|
||
Removes the users [email protected], [email protected] and [email protected] from the team. | ||
|
||
## PARAMETERS | ||
|
||
### -Force | ||
|
@@ -67,7 +74,7 @@ Specify the role of the user you are removing from the team. Accepts "Owner" and | |
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Parameter Sets: (User) | ||
|
||
Required: False | ||
Position: Named | ||
|
@@ -95,7 +102,21 @@ Specify the UPN (e.g. [email protected]) | |
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
Parameter Sets: (User) | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Users | ||
Specify the list of UPN (e.g. [email protected]) | ||
```yaml | ||
Type: String | ||
Parameter Sets: (Users) | ||
|
||
Required: True | ||
Position: Named | ||
|
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