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
### Example 4: Connect to MicrosoftTeams using Access Tokens
95
+
### Example 4: Connect to MicrosoftTeams using a certificate thumbprint
96
+
This example demonstrates how to authenticate using a certificate thumbprint. Application-based authentication has been reintroduced in preview with version 4.7.1-preview. For details and supported cmdlets, please see [Application-based authentication in Teams PowerShell Module](/MicrosoftTeams/teams-powershell-application-authentication).
### Example 5: Connect to MicrosoftTeams using Application-based Access Tokens
103
+
This example demonstrates how to authenticate with an application using Access Tokens. Access Tokens can be retrieved via the login.microsoftonline.com endpoint. It requires two Access Tokens – “MS Graph” and “Skype and Teams Tenant Admin API” resources.
104
+
105
+
Application-based authentication has been reintroduced in preview with version 4.7.1-preview. For details and supported cmdlets, see [Application-based authentication in Teams PowerShell Module](/MicrosoftTeams/teams-powershell-application-authentication).
### Example 6: Connect to MicrosoftTeams using Access Tokens in the delegated flow
83
134
This example demonstrates how to sign in using Access Tokens. Admin can retrieve Access Tokens via the login.microsoftonline.com endpoint. It requires two tokens, MS Graph Access Token and Teams Resource token.
84
135
85
136
A delegated flow, such as Resource Owner Password Credentials (ROPC) or device code, must be used, with the following delegated app permissions required.
Specifies a access tokens for "MSGraph" and "Skype and Teams Tenant Admin API" resources. This new parameter is added in version 2.3.2-preview.
123
-
124
-
Following steps must be performed by Tenant Admin in the Azure portal when using your own application.
125
-
126
-
Steps to configure the AAD application.
127
-
1. Go to Azure portal and go to App Registrations.
128
-
2. Create or select the existing application.
129
-
3. Add the following permission to this Application.
130
-
4. Click API permissions.
131
-
5. Click Add a permission.
132
-
6. Click on the Microsoft MS Graph, and then select Delegated Permission.
133
-
7. Add the following permissions: "AppCatalog.ReadWrite.All", "Group.ReadWrite.All", "User.Read.All";
134
-
8. Next, we need to add "Skype and Teams Tenant Admin API" resource permission. Click Add a permission.
135
-
9. Navigate to "APIs my organization uses"
136
-
10. Search for "Skype and Teams Tenant Admin API".
137
-
11. Add all the listed permissions.
138
-
12. Grant admin consent to both MS Graph and "Skype and Teams Tenant Admin API" name.
173
+
Specifies access tokens for "MS Graph" and "Skype and Teams Tenant Admin API" resources. Both the tokens used should be of the same type.
174
+
175
+
- Application-based authentication has been reintroduced in preview with version 4.7.1-preview. For details and supported cmdlets, see [Application-based authentication in Teams PowerShell Module](/MicrosoftTeams/teams-powershell-application-authentication).
176
+
177
+
- Delegated flow - The following steps must be performed by Tenant Admin in the Azure portal when using your own application.
178
+
179
+
Steps to configure the AAD application.
180
+
1. Go to Azure portal and go to App Registrations.
181
+
2. Create or select the existing application.
182
+
3. Add the following permission to this Application.
183
+
4. Click API permissions.
184
+
5. Click Add a permission.
185
+
6. Click on the Microsoft MS Graph, and then select Delegated Permission.
186
+
7. Add the following permissions: "AppCatalog.ReadWrite.All", "Group.ReadWrite.All", "User.Read.All";
187
+
8. Next, we need to add "Skype and Teams Tenant Admin API" resource permission. Click Add a permission.
188
+
9. Navigate to "APIs my organization uses"
189
+
10. Search for "Skype and Teams Tenant Admin API".
190
+
11. Add all the listed permissions.
191
+
12. Grant admin consent to both MS Graph and "Skype and Teams Tenant Admin API" name.
Specifies the application ID of the service principal.
235
+
Specifies the application ID of the service principal that is used in application-based authentication.
183
236
184
-
> [!WARNING]
185
-
>This parameter has been removed from the latest versions and replaced by the AccessTokens parameter.
237
+
This parameter has been reintroduced in preview with version 4.7.1-preview. For more information about Application-based authentication and supported cmdlets, see [Application-based authentication in Teams PowerShell Module](/MicrosoftTeams/teams-powershell-application-authentication).
### -CertificateThumbprint (Removed from version 2.4.1-preview)
199
-
Specifies the certificate thumbprint of a digital public key X.509 certificate of a user account that has permission to perform this action.
200
-
> [!WARNING]
201
-
>This parameter has been removed from version 2.4.1-preview.
250
+
### -CertificateThumbprint
251
+
Specifies the certificate thumbprint of a digital public key X.509 certificate of an application that has permission to perform this action.
252
+
253
+
This parameter has been reintroduced in preview with version 4.7.1-preview. For more information about Application-based authentication and supported cmdlets, see [Application-based authentication in Teams PowerShell Module](/MicrosoftTeams/teams-powershell-application-authentication).
0 commit comments