Add-TeamUser

Note: This cmdlet is currently in Beta.

Adds an owner or member to the team, and to the unified group which backs the team.

Note: the command will return immediately, but the Teams application will not reflect the update immediately. The Teams application may need to be open for up to an hour before changes are reflected.

To turn an existing Member into an Owner, first Add-TeamUser -Role Owner -User to add them to the owners list, then Remove-TeamUser -User foo to remove them from the members list.

Syntax

Add-TeamUser
   -GroupId <String>
   -User <String>
   [-Role <String>]

Examples

-------------------------- Example 1 --------------------------

Add-TeamUser -GroupId 31f1ff6c-d48c-4f8a-b2e1-abca7fd399df -User dmx@example.com

Add user dmx@example.com to group.

Required Parameters

-GroupId

GroupId of the team

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
Applies to:Microsoft Teams
-User

User's UPN (user principal name - e.g. johndoe@example.com)

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
Applies to:Microsoft Teams

Optional Parameters

-Role

Member or Owner

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
Applies to:Microsoft Teams

Inputs

GroupId, User, Role