Add-PnPTeamsUser
SYNOPSIS
Required Permissions
- Microsoft Graph API: Group.ReadWrite.All
Adds a user to an existing Microsoft Teams instance.
SYNTAX
Add-PnPTeamsUser -Team <TeamsTeamPipeBind> -User <String> -Role <String> [<CommonParameters>]
DESCRIPTION
EXAMPLES
EXAMPLE 1
Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Owner
Adds a user as an owner to the team
EXAMPLE 2
Add-PnPTeamsUser -Team MyTeam -User john@doe.com -Role Member
Adds a user as a member to the team
PARAMETERS
-Role
Specify the role of the user
Type: String
Parameter Sets: (All)
Accepted values: Owner, Member
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Team
Specify the group id, mailNickname or display name of the team to use.
Type: TeamsTeamPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-User
Specify the UPN (e.g. john@doe.com)
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False