-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1241 from gautamdsheth/feature/1021
#1021 - New-PnPTeamsTeam , ability to add multiple owners and members
- Loading branch information
Showing
4 changed files
with
160 additions
and
55 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
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ New-PnPTeamsTeam -GroupId <String> [-Owner <String>] [-AllowAddRemoveApps <Boole | |
[-AllowOwnerDeleteMessages <Boolean>] [-AllowStickersAndMemes <Boolean>] [-AllowTeamMentions <Boolean>] | ||
[-AllowUserDeleteMessages <Boolean>] [-AllowUserEditMessages <Boolean>] | ||
[-GiphyContentRating <TeamGiphyContentRating>] [-ShowInTeamsSearchAndSuggestions <Boolean>] | ||
[-Classification <String>] [<CommonParameters>] | ||
[-Classification <String>] [-Owners <String[]>] [-Members <String[]>] [<CommonParameters>] | ||
``` | ||
|
||
### For a new group | ||
|
@@ -42,7 +42,8 @@ New-PnPTeamsTeam -DisplayName <String> [-MailNickName <String>] [-Description <S | |
[-AllowOwnerDeleteMessages <Boolean>] [-AllowStickersAndMemes <Boolean>] [-AllowTeamMentions <Boolean>] | ||
[-AllowUserDeleteMessages <Boolean>] [-AllowUserEditMessages <Boolean>] | ||
[-GiphyContentRating <TeamGiphyContentRating>] [-Visibility <TeamVisibility>] | ||
[-ShowInTeamsSearchAndSuggestions <Boolean>] [-Classification <String>] | ||
[-ShowInTeamsSearchAndSuggestions <Boolean>] [-Classification <String>] | ||
[-Owners <String[]>] [-Members <String[]>] | ||
[-ResourceBehaviorOptions <TeamResourceBehaviorOptions>] | ||
[<CommonParameters>] | ||
``` | ||
|
@@ -80,6 +81,13 @@ New-PnPTeamsTeam -DisplayName "myPnPDemo1" -Visibility Private -AllowCreateUpdat | |
|
||
This will create a new Microsoft Teams team called "myPnPDemo1" and sets the privacy to Private, as well as preventing users from deleting their messages or update/remove tabs. The user creating the Microsoft Teams team will be added as Owner. Welcome Email will not be sent when the Group is created. The M365 Group will also not be visible in Outlook. | ||
|
||
### EXAMPLE 5 | ||
```powershell | ||
New-PnPTeamsTeam -DisplayName "myPnPDemo1" -Visibility Private -Owners "[email protected]","[email protected]" -Members "[email protected]" | ||
``` | ||
|
||
This will create a new Microsoft Teams team called "myPnPDemo1" and sets the privacy to Private. User1 and user2 will be added as owners. User3 will be added as a member. | ||
|
||
## PARAMETERS | ||
|
||
### -AllowAddRemoveApps | ||
|
@@ -419,6 +427,33 @@ Accept pipeline input: False | |
Accept wildcard characters: False | ||
``` | ||
### -Owners | ||
The UPN(s) of the user(s) to be added to the Microsoft 365 group as a owners. | ||
```yaml | ||
Type: String[] | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Members | ||
The UPN(s) of the user(s) to be added to the Microsoft 365 group as a members. | ||
```yaml | ||
Type: String[] | ||
Parameter Sets: (All) | ||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -ResourceBehaviorOptions | ||
Allows providing ResourceBehaviorOptions which accepts multiple values that specify group behaviors for a Microsoft 365 Group. This will only work when you create a new Microsoft 365 Group, it will not work for existing groups. | ||
|
@@ -435,7 +470,6 @@ Accept pipeline input: False | |
Accept wildcard characters: False | ||
``` | ||
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) | ||
|
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