Teams Dynamic OAuth2 Account

In this article

Overview

You can use this account type to connect Teams Snaps with data sources that use dynamic OAuth2 accounts.

Prerequisites

AĀ registered application in theĀ Microsoft Azure PortalĀ with appropriate permissions can be used to generate theĀ Access token. SeeĀ Application Configuration inĀ Azure Portal for OAuth2 AccountĀ for the steps to duly configure a registered application and for information needed to define settings for the OAuth2 account.

Limitations and Known Issues

None.

Account Settings

  • Asterisk (*): Indicates a mandatory field.

  • Suggestion icon (): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ( ): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ( ): Indicates that you can add fields in the field set.

  • Remove icon (): Indicates that you can remove fields from the field set.

Field Name

Field Type

Description

Label*

Ā 

Default Value:Ā N/A
Example:Ā Teams Dynamic OAuth2 Account

String

Specify a unique label for the account.

Ā 

Access token*

Ā 

Default Value:Ā N/A
Example: 1abcd23e45fg6789hi01-23456jk789l01abcd23e-45fg6789hi01-23456jk789l01abcd23e-45fg-6789-hi01-23456jk789l0

String/Expression

Specify the Access Token generated using the authorization code/client credentials flow. See Access Token Generation for details.Ā 

Access Token Type*

Ā 

Default Value:Ā On behalf of user (authorization_code grant type)
Example: On behalf of application (client_credentials grant type)

Dropdown list

Select the type of Access Token (application or individual user) you are using for the account from the two options available:

  • On behalf of user (authorization_code grant type). To run the Snaps as an individual user.

  • On behalf of application (client_credentials grant type).Ā To run the Snaps as an (Azure portal) application.

Access Token Generation

Depending on the type of access required, the Teams Dynamic account needs either an Access Token (application) or Authorization Code (user) to connect to your Microsoft Teams instance.

  • Access Token to perform actions on behalf of an application (client_credentials grant type).Ā See Get access without a user in Microsoft Docs for more information.

  • Authorization Code to perform actions on behalf of a signed-in user (authorization_code grant type). See Get access on behalf of a user in Microsoft DocsĀ for more information.

Troubleshooting

None.

Snap Pack History


Related Content