Connect action in the Microsoft Teams package
- Última atualização2025/09/11
Connect action in the Microsoft Teams package
The Connect action in the Microsoft Teams package is used to establish a secure connection with Microsoft Teams. It uses OAuth2 authentication to safely authenticate and authorize the bot, enabling secure interaction with Teams and perform actions such as sending messages, reading channel information, or performing other Teams-related tasks within your automation.
OAuth 2.0 is used to connect to the Microsoft Teams server. Ensure that you configure the OAuth connection in the Control Room.
Configure OAuth connection in Control Room. For more information, see Configure a conexão do OAuth 2.0 na Control Room.
Settings
- In the OAuth connection field, click
Pick to choose from available Control Room-managed
OAuth2 credentials.Note: Ensure the OAuth2 connection is valid and active in the Control Room.
- Click the Provider type drop-down menu to select an
available or custom provider.
For information in creating a custom provider, see Configure a conexão do OAuth 2.0 na Control Room.
- In the Connection name field, select the specific OAuth connection
object
Control Room admin for Microsoft Teams.
This field is disabled until a Provider type is selected.
- In the Token type field, select one of the following options
depending on the token that will be used at run time.
-
Shared: for a global token.
An access token of shared type is created when a connection is established to the Control Room. This access token is stored as a credential. When you run your automation, the access token is referenced in the automation using the enterprise application provider type set up in the Control Room.
-
User-specific: for a token that is specific to a
user.If you select this option, ensure that you log in to your Microsoft Teams account to authenticate and generate a user-specific token. Perform the following steps to use this option:
- Log in to Control Room and navigate to in your profile.
- Under the OAuth connections tab, click Login to authenticate.
- Sign in to your Microsoft 365 account and select Continue.
- Verify the services you have access to and click
Continue.
If the connection is succeeded, it will display the status as Active under the table.
-
Shared: for a global token.
-
Username: Choose one of the following tabs and enter or
select the Microsoft 365 user email address:
- Credential: enables you to use a value available in the Credential Vault. Click the Pick button to select a credential.
- Variable: enables you to use a value that is stored as a credential variable.
- Insecure string: enables you to specify the values.
- In the Create session field, use one of the following
tabs for creating a session:
- Local session: to specify a session name that can be used only in the current bot.
-
Global session: to specify a session name that can be used across
multiple bots, such as parent bots, child bots, and all other child
bots of the parent bot.
Recommendation: The parent and child bots should have the same package version.
- Variable: to specify a session variable.