integration-service
latest
false
UiPath logo, featuring letters U and I in white

Integration Service user guide

Last updated Feb 19, 2026

Microsoft Teams authentication

This document describes how to authenticate Microsoft Teams with UiPath Integration Service using OAuth 2.0. The Microsoft Teams connector supports user-based OAuth authentication, with optional support for custom OAuth applications and bot-enabled scenarios.

Overview

The following table summarizes the supported authentication options and their prerequisites.

Authentication ScenarioDescriptionPrerequisites
UiPath-managed OAuth (Authorization Code)Uses a UiPath-managed applicationMicrosoft Teams account, ability to grant consent
Bring Your Own OAuth App (BYOA)Uses a customer-managed Azure AD applicationAzure AD app, Client ID, Client Secret, Tenant ID, admin consent

OAuth 2.0 authentication

Include bot

The Include Bot option determines whether the connection includes Microsoft Teams bot-based access in addition to user-delegated OAuth permissions.

SettingBehavior
No (Default)User-delegated OAuth only
YesEnables Microsoft Teams bot functionality
Note:
  • Bot authentication requires a registered Microsoft Teams bot in Azure.
  • Bot support is not required for most Microsoft Teams activities.
  • Use this option only if your automation explicitly requires bot capabilities.

Bring Your Own OAuth App (BYOA) configuration

If you select Bring Your Own OAuth App, configure your Azure AD application as follows.

Azure application settings

SettingValue
OAuth flowAuthorization Code
Redirect / Callback URLhttps://{baseURL}/provisioning_/callback(for example,https://cloud.uipath.com/provisioning_/callback for Automation Cloud).
Supported account typesSingle-tenant or Multi-tenant
APIMicrosoft Graph

Tenant ID

App TypeTenant ID
Multi-tenantcommon
Single-tenantAzure tenant ID
Note:

UiPath supports both single-tenant and multi-tenant applications.

Scopes and permissions

Scopes control what actions UiPath can perform in Microsoft Teams. Scopes are configurable during connection creation.

Mandatory scopes

The following scopes are mandatory and must not be removed. They are required for a successful connection.

ScopePurpose
openidUser authentication and ID token generation
offline_accessEnables refresh token issuance
User.ReadReads signed-in user profile
Note:

Removing any mandatory scope will result in connection or runtime authentication failures.

All scopes

The following scopes enable common Microsoft Teams automation scenarios.

ScopeUse caseActivity or event
openidBy using this permission, an app can receive a unique identifier for the user in the form of the sub claim. The permission also gives the app access to the UserInfo endpoint. The openid scope can be used at the Microsoft identity platform token endpoint to acquire ID tokens. The app can use these tokens for authenticationN/A
offline_accessRequired to receive refresh token in the authentication request endpoint. When you redeem an authorization code in the OAuth 2.0 authorization code flow without offline\_access scope, you will not receive refresh token from the /token endpoint.N/A
profileRetrieving the current user profile such as name, username, email etc., so that it could be used as default/authenticated user at the connection creation and in certain activitiesN/A
emailAllows the app to read all your users' primary email addresses, for sending messages or inviting them to a channelSend Individual Chat Message, Invite Member to Channel, Invite User to Team
User.ReadAllows users to sign-in to the app, and allows the app to read the profile of signed-in users. It also allows the app to read basic company information of signed-in usersGet Record → Me
Team.CreateCreate a team for inviting and engaging the respective usersInsert Record → Teams
Team.ReadBasic.AllRetrieve the list of teams to be selected in the activities, such as sending a channel message etc.Create Channel, List All Channels, Send Chat Message, Send Individual Chat Message, Invite Member to a Channel, Reply to a Channel Message, Send Channel Message, Get Team by Name
TeamMember.ReadWrite.AllAdd member to a team on behalf of the signed-in user Retrieve the list of members of a teamList All Team Members, Invite User to Team, Get Team by Name, Insert Record → Teams members, List All Records → Teams members
Channel.CreateCreate a channel (standard/private) for inviting and engaging the respective users of the teamCreate Channel
Channel.ReadBasic.AllRetrieve the list of channels of a team to be selected in the activities such as sending a channel message etc.Get Channel by Name, Invite Member to a Channel, List All Channels, List Channel by Name, Reply to Channel Message, Send Channel Message
ChannelMember.ReadWrite.AllAdd member to a channel on behalf of the signed-in user Retrieve the list of members involved in a channelInvite Member to a Channel, List All Records → Teams channels members
ChannelMessage.SendSend a message in a channel. Also, reply to a message in a thread, if needed.Reply to Channel Message, Send Channel Message
ChannelMessage.Read.AllAllows the app to read all channel messages in Microsoft Teams, without a signed-in user Also used to trigger events whenever a message is posted in the channel or whenever a keyword is mentioned in the channelReply to Channel Message, List all Channel Messages, List All Records → Teams channels messages, When a message posted in channel (Future), When a keyword or username is mentioned in channel (Future)
Chat.ReadWriteAllows the app to read and send your 1:1 Allows the app to read and send group chat messages Also used to trigger events whenever a chat message is postedSend Group Chat Message, Send Individual Chat Message, List All Chat Messages, List All Records → Chats, When a chat message is posted (Future)
ChatMember.ReadWriteAdd member to a chats on behalf of the signed-in user Retrieve the list of members involved in a chatInsert Record → Chats members, List All Records → Chats members
Calendars.ReadWriteCreate an Outlook calendar entry of the online Teams meeting.Create Online Teams Meeting
OnlineMeetings.ReadWriteCreate an online meeting in Microsoft Teams and retrieve the meeting ID, passcode and URL on behalf of the current user.Create Online Teams Meeting
Files.Read.AllRetrieve the file information that was uploaded to SharePoint in order to share it in a Teams channel or chatSend Channel Message Send Group Chat Message, Send Individual Chat Message, Reply to Channel Message

Scopes can be added or removed to follow least-privilege principles.

Refresh tokens for OAuth applications

Refresh tokens for OAuth applications can be invalidated or revoked at any time by Microsoft. This can happen for different reasons, such as timeouts and revocations. For details, see Microsoft's official documentation.

Note:

Token invalidation results in failed connections and automations are unable to run without fixing connections.

This issue affects all Microsoft Graph-based connectors.

Make sure to follow best practices from Microsoft when creating your OAuth applications. For full details on how to create a Microsoft OAuth app, check the Microsoft documentation.

Add the Microsoft Teams connection

To create a connection to your Microsoft Teams instance, you need to perform the following steps:

  1. Select Integration Service from the left rail.
  2. From the Connectors list, select Microsoft Teams. You can also use the search bar to narrow down the connector.
  3. Select Connect to Microsoft Teams.
  4. You are now redirected to the connection page. You can choose between two authentication types: OAuth 2.0 Authorization code or Bring your own OAuth 2.0 app.
  5. Enter the required credentials.
  6. Select Connect.

For more information about authenticating in Microsoft Teams, refer to the Microsoft Authentication and authorization page.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.