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

Integration Service user guide

Last updated May 1, 2025

Microsoft Outlook 365 authentication

Overview

In Integration Service, when you create a connection to one of our Microsoft Graph-based connectors, you can choose between the following authentication options:

  • OAuth 2.0 Authorization code – connects to the UiPath public application with your Microsoft account credentials, and, optionally, your shared mailbox.
  • OAuth 2.0 Client credentials – uses a service account.
  • Bring your own OAuth 2.0 app – connects to a private application you create.
Note: For more details regarding the different authentication types, check How to connect to Microsoft 365 activities.

In case you encounter any errors during the sign-in process, it is recommended to contact your Microsoft Outlook 365 administrator. For more information, refer to the Office 365 Outlook connector documentation.

Admin consent

Note: This section applies only to the OAuth 2.0 Authorization code and Bring your own OAuth 2.0 app authentication options.

Many organizations require the consent of an administrator before you create a connection to an external application. The admin consent workflow requires an admin to approve the app registration to specific users or groups before a connection is established. For more details, chek Overview of admin consent workflow and User and admin consent in Microsoft Entra ID in the Microsoft documentation.

Note: Integration Service impersonates the user that creates the connection. The credentials of the user offer access to all of the same resources that they have in the given application. If you share the connection, every change made to Microsoft SharePoint or OneDrive with that connection is made on behalf of that user.

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.

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

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

This issue affects not only the OneDrive & SharePoint connector, but all Microsoft Graph-based connectors, such as Outlook or Teams.

OAuth 2.0 Authorization code

Scopes

The connector requests the following permissions or scopes: Mail.Read, Mail.Read.Shared, Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send, Mail.Send.Shared, MailboxSettings.ReadWrite, Calendars.Read, Calendars.Read.Shared, Calendars.ReadWrite, Calendars.ReadWrite.Shared, profile, openid, email, offline_access, User.Read.

Adding the Microsoft Outlook 365 connection

To create a connection to your Microsoft Outlook 365 instance, perform the following steps:

  1. Select Integration Service from Automation CloudTM.

  2. From the Connectors list, select Microsoft Outlook 365, or use the search bar to find the connector.
  3. Select Connect to Microsoft Outlook 365.
  4. You are now redirected to the connection page.
  5. From the gear icon, select the OAuth 2.0 Authorization code authentication type.
  6. Select an environment from the drop-down list: Office 365 (default), US Government L4 - Public Sector domain, US Government L5 - Public Sector domain, or China.
    Note: For more details on environments, check Microsoft Graph and Graph Explorer service root endpoints.
  7. Optionally, enter your shared mailbox in the Shared mailbox field.
    Note: All Outlook activities inherit the shared mailbox once you connect.
  8. Select Connect.
  9. Authenticate with your Microsoft email address and password.

OAuth 2.0 Client credentials

Scopes

The minimal scopes required for creating a connection are the following: Mail.Read, User.Read.

Adding the Microsoft Outlook 365 connection

To create a connection to your Microsoft Outlook 365 instance, perform the following steps:

  1. Select Integration Service from Automation CloudTM.

  2. From the Connectors list, select Microsoft Outlook 365, or use the search bar to find the connector.
  3. Select Connect to Microsoft Outlook 365.
  4. You are now redirected to the connection page.
  5. From the gear icon, select the OAuth 2.0 Client credentials authentication type.
  6. Fill in the required fields Client ID, Client secret, and, optionally, the fields Tenant ID, Environment, Shared mailbox, and Account.
    Note:
    • This authentication type is only for application permissions and does not require to impersonate a user. If you do not enter any Account, the connection acts similar to a service account, which does not impersonate any user. When you enter an account, it represents the account that impersonates a user.
    • The account is mandatory for Outlook and Calendar triggers and activities.
  7. Select Connect.

Bring your own OAuth 2.0 app

Overview

To learn how to create an application, go to Microsoft's official documentation and follow the described steps: Register an application with the Microsoft identity platform.

Note: This is an advanced functionality and requires admin privileges in the target application. Work with your IT administrator to set up your application successfully.
Requirements

When creating your own application to use with Integration Service, you must consider the following requirements:

  1. You must configure the application as a Multitenant or Single tenant application.
  2. You must configure a Web application.
  3. You must configure a Web Redirect URI. The Redirect URI (or callback URL) for your OAuth 2.0 application is provided in the authentication screen when creating a connection: https://cloud.uipath.com/provisioning_/callback.
  4. You must set up delegated permissions. For more information, refer to Permissions in the Microsoft official documentation.
  5. Generate a client secret for your application.
Important: The advantage of using your private OAuth application is that you can customize permissions depending on your actual needs. To learn which scopes are required for each activity in the Microsoft 365 package, refer to Working with scopes and check out the activities documentation.

The connector uses Microsoft Graph API. Refer to the Microsoft Graph permissions reference page for details on all permissions.

After you create your application, use the Client ID and Client Secret to create a connection with the Microsoft connectors.

Scopes

  • Minimal scopes required for creating a connection: openid, offline_access, Mail.Read.
  • Minimal list of scopes required for Outlook triggers:
    • openid, offline_access, Mail.Read, Mail.Read.Shared – for shared mailbox triggers.
    • Calendars.Read – for events on calendars.
    • Calendars.Read.Shared – for events on shared calendars.

Adding the Microsoft Outlook 365 connection

To create a connection to your Microsoft Outlook 365 instance, perform the following steps:

  1. Select Integration Service from Automation CloudTM.

  2. From the Connectors list, select Microsoft Outlook 365, or use the search bar to find the connector.
  3. Select Connect to Microsoft Outlook 365.
  4. You are now redirected to the connection page.
  5. From the gear icon, select the Bring your own OAuth 2.0 app authentication type.
  6. Fill in the required fields: Client ID and Client secret, and, optionally, the Scope, required to interact with different activities, Tenant ID, Environment, and Shared mailbox.
    Note:

Was this page helpful?

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