You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
3
3
Module Name: MicrosoftTeams
4
-
applicable: Microsoft Teams
5
-
title: Add-TeamUser
6
-
online version:
4
+
online version:
7
5
schema: 2.0.0
8
-
author: kenwith
9
-
ms.author: kenwith
10
-
ms.reviewer:
11
6
---
12
7
13
8
# Add-TeamUser
14
9
15
10
## SYNOPSIS
16
-
Note: This cmdlet is currently in Beta.
17
-
18
-
Adds an owner or member to the team, and to the unified group which backs the team.
11
+
Adds an owner or member to the team, and to the unified group which backs the team.
19
12
20
13
Note: the command will return immediately, but the Teams application will not reflect the update immediately.
21
14
The Teams application may need to be open for up to an hour before changes are reflected.
22
15
23
-
By default, when you run this cmdlet to add an owner, you will not add it as a member. You must run this cmdlet again to add the owner as a member as well.
16
+
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.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
85
+
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Use this setting if your organization is in one of the Teams Government Cloud environments.
258
+
259
+
Specify "TeamsGCCH" if your organization is in the GCC High Environment. Specify "TeamsDOD" if your organization is in the DoD Environment.
260
+
261
+
```yaml
262
+
Type: String
263
+
Parameter Sets: UserCredential
264
+
Aliases:
265
+
266
+
Required: False
267
+
Position: Named
268
+
Default value: None
269
+
Accept pipeline input: False
270
+
Accept wildcard characters: False
271
+
```
272
+
273
+
### CommonParameters
274
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
275
+
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
276
+
267
277
## INPUTS
268
278
269
279
## OUTPUTS
270
280
271
281
## NOTES
272
-
273
-
Tips for troubleshooting:
274
-
1. Confirm SAML 2.0 is being used.
275
-
IDP is outputting invalid SAML information. Needs to have SAML 2.0 vs. SAML 1.0 for the module to connect.
282
+
Tips for troubleshooting: 1.
283
+
Confirm SAML 2.0 is being used.
284
+
IDP is outputting invalid SAML information.
285
+
Needs to have SAML 2.0 vs.
286
+
SAML 1.0 for the module to connect.
276
287
You might experience an error if the Identity Provider (IDP) only allows the use of SAML1.0 when trying to auth via basic authentication.
277
288
Which in turn, isn't expected to work because the cmdlet expects either OAUTH2 (which is used when doing just connect-microsofteams), or SAML2.0.
278
-
2. Confirm you have the latest version of the cmdlet. You can find the version by running: `get-module -listavailable` and then looking for the MicrosoftTeams name and the version to the left of it.
289
+
2.
290
+
Confirm you have the latest version of the cmdlet.
291
+
You can find the version by running: \`get-module -listavailable\` and then looking for the MicrosoftTeams name and the version to the left of it.
0 commit comments