---
title: "Exchange Online Configuration"
description: "How to configure Exchange Online access for EMILY.RPA: obtaining the Tenant ID, Application ID and client secret."
source: https://docs.emily.tips/en/faq/config-exchange-online
---

<head>
  <script type="application/ld+json">
    {JSON.stringify({
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "url": "https://docs.emily.tips/en/faq/config-exchange-online",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "What configuration does EMILY.RPA need to access Exchange Online?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Three values from the Azure Portal (Microsoft Entra ID) are required: the Tenant ID, the Application (Client) ID and the client secret. Enter them in the EMILY.RPA Exchange mail modules or in the email trigger settings."
          }
        }
      ]
    })}
  </script>
</head>

# Exchange Online Configuration

### Tenant ID (TENANT ID)

Sign in with your Microsoft account on the Azure Portal, search for and navigate to Azure Active Directory (now renamed to Microsoft Entra ID) overview, where you can find the `Tenant ID`.

![](https://docs.emily.tips/img/en/faq-011.png)

### Client ID (CLIENT ID)

Before accessing Exchange Online, you need to create an "**App Registration**". The CLIENT ID is the `Application (client) ID` of the enterprise application registered under the tenant mentioned above. The registration steps are as follows:

![](https://docs.emily.tips/img/en/faq-012.png)

Choose a name that matches the purpose for easier identification. For supported account types, keep the default single tenant option `Accounts in this organizational directory only`, unless other tenants also need to use this client to access email. Set the platform to `Web` and the URI to `http://localhost:3650/callback`.

![](https://docs.emily.tips/img/en/faq-013.png)

After clicking "**Register**", you can copy the Client ID.

![](https://docs.emily.tips/img/en/faq-014.png)

### Client Secret (CLIENT SECRET)

Next, click "**Add a certificate or secret**" shown in the image above. On the "**Add a client secret**" page, fill in the `Description` and select the `Expires` option. It is recommended to choose a longer expiration date to avoid having to create a new client secret after it expires.

![](https://docs.emily.tips/img/en/faq-015.png)

After clicking "**Add**", you can copy the "**Client Secret**" value.

![](https://docs.emily.tips/img/en/faq-016.png)
