activities
latest
false
Productivity Activities
Last updated Oct 23, 2024

Configuring the Azure AD for Outlook 365 Automation

Note: The instructions on this page are not required if you use Integration Service connections.
Automations with Outlook 365 online accounts require an application to be added to the Azure AD for your tenant, and granted permissions to access emails and sign in to email accounts. The credentials must then be added as assets in Orchestrator so that they can be automatically loaded in Studio. If the application credentials are not added in Orchestrator, users must provide them when adding their accounts from the Use Outlook 365 activity.

As an administrator, you can either add the application provided by UiPath, or create your own application in Azure AD.

Adding the UiPath Application

From Studio

  1. Open or create a project in Studio, and then add a Use Outlook 365 activity.
  2. In the activity, click Please select an account > Add new account.

    The Add Exchange account dialog box is displayed.



  3. In the Application ID text box, enter f2f43f65-16a6-4319-91b6-d2a342a88744, the ID of the UiPath Office 365 Azure AD app, and then click OK.
  4. A new window is displayed where you are prompted to sign in to your Microsoft account.
  5. After signing in, a consent prompt asks you to grant the app access to the requested permissions. Click Accept to consent on behalf of your organization.



From a Web Browser

  1. Open a web browser and navigate to the following URL: https://login.microsoftonline.com/{tenant_GUID}/adminconsent?client_id=f2f43f65-16a6-4319-91b6-d2a342a88744, where tenant_GUID is the ID of the tenant from which to request permissions.
  2. Sign in to your Microsoft account.
  3. After signing in, a consent prompt asks you to grant the app access to the requested permissions. Click Accept to consent on behalf of your organization.

Creating Your Own Application

  1. Sign in to your Azure account and navigate to Azure Active Directory > App registrations > New registration.
  2. On the Register an application page:

    • Enter a unique application name.
    • For Supported account types, select Accounts in this organizational directory only.
    • For Redirect URI, select Public client/native, and then enter urn:ietf:wg:oauth:2.0:oob.
  3. Click Register to create the application.



Granting Necessary Permissions to the Application

If Azure AD is configured to allow users to consent to apps accessing company data on their behalf, each user sees a consent prompt when they try to add an account in a Use Outlook 365 activity. Clicking Accept in the form grants the necessary permissions.

If users cannot consent to apps accessing company data on their behalf, an administrator must grant the permissions on behalf of the organization in one of the following ways:

  • From Studio, as described for adding the UiPath app, but using the ID of the newly created app instead of the ID of the UiPath app. When the consent prompt is displayed, select Consent on behalf of your organization before clicking Accept.



  • From the Azure AD portal, by navigating to the application and manually granting the permissions.
  • Adding the UiPath Application
  • Creating Your Own Application

Was this page helpful?

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