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

Integration Service user guide

Last updated Nov 20, 2025

Microsoft Teams authentication

Prerequisites

Depending on the authentication type you select, you need one of the following credentials:

  • OAuth 2.0 Authorization code: Scope, Microsoft username and password
  • Bring your own OAuth 2.0 app: Scope, Client ID, Client secret, Tenant ID

For creating a private OAuth2 app, follow the steps described in the Microsoft Teams documentation: Configure third party OAuth authentication - Teams. Additionally, you must grant permissions to third-party apps to access your information.

Note:

Through the Bring your own OAuth 2.0 app authentication method, we support both multitenant and single-tenant applications. If you are using a multitenant application, keep the default value for the Tenant ID (common). If you are using a single-tenant application, retrieve the Tenant ID from Azure. Refer to How to find your Microsoft Entra tenant ID.

The Scope field represents the default scopes for regular user operations:

OnlineMeetingTranscript.Read.AllOnlineMeetingRecording.Read.AllTeam.ReadBasic.AllTeamMember.ReadWrite.AllChannel.CreateChannel.ReadBasic.AllChannelMember.ReadWrite.AllChannelMessage.SendChannelMessage.Read.AllChat.ReadWriteChatMember.ReadWriteCalendars.ReadWriteOnlineMeetings.ReadWriteFiles.Read.AllUser.Readprofileopenidemailoffline_accessOnlineMeetingTranscript.Read.AllOnlineMeetingRecording.Read.AllTeam.ReadBasic.AllTeamMember.ReadWrite.AllChannel.CreateChannel.ReadBasic.AllChannelMember.ReadWrite.AllChannelMessage.SendChannelMessage.Read.AllChat.ReadWriteChatMember.ReadWriteCalendars.ReadWriteOnlineMeetings.ReadWriteFiles.Read.AllUser.Readprofileopenidemailoffline_access

You can add or remove scopes to customize user permissions for your connection. For more details, refer to the Scopes section, as well as the Microsoft documentation: Microsoft Graph permissions reference.

Grant permissions

To use the UiPath application for Microsoft Teams or your own private OAuth 2.0 app, you must grant consent to the application's permissions. Follow the steps described in Grant org-wide admin consent to an app's permissions.

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.

Scopes and permissions

You can use this connection to enable the Microsoft Teams activity package in UiPath Studio to build automations for user and channel management, messaging, and other ways of working together. The various permission-based use cases that can be achieved are as follows:

ScopeUse caseActivity or event
openid (Required)By 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_access (Required)Required 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
profile (Required)Retrieving 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
email (Required)Allows 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.Read (Recommended)Allows 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 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.Invite Member to a Channel Get 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 Microsot 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

Was this page helpful?

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