> ## Documentation Index
> Fetch the complete documentation index at: https://help.gorelo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Outlook Calendar integration

> Set up two-way calendar sync between Gorelo and Outlook with an Azure AD app registration so events flow between user calendars in both directions seamlessly.

Gorelo integrates with Outlook Calendar which allows for 2-way sync between the Gorelo user calendar and the primary calendar in Outlook (SSO with M365 required).

<Steps>
  <Step title="Create the app in AzureAD.">
    1. Navigate to **[Azure](https://portal.azure.com/) > Microsoft Entra ID.**
    2. In the left menu, click **App registrations.**

    <Frame>
      <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-152.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=f423051ea8127acebaf562644aa33215" alt="Image 152" width="278" height="436" data-path="images/image-152.png" />
    </Frame>

    3. Click **+New registration.**
       * **Name**: Gorelo Calendar
       * **Supported account types**: Accounts in this organizational directory only
           <Frame>
             <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-153.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=0ad425633a00553c72d9461efffcbbc1" alt="Image" width="829" height="324" data-path="images/image-153.png" />
           </Frame>
    4. Click **Register.**
    5. Navigate to **API permissions** from the left menu.
    6. Click **Add a permission:**
       * Select **Microsoft Graph.**
             <Frame>
               <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-154.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=d42d893f81a2debade7e3c689ec350b8" alt="Image" width="795" height="326" data-path="images/image-154.png" />
             </Frame>
       * Select **Application permission.**
           <Frame>
             <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-155.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=fc7f6f41d0e0566f98fc2f2587567723" alt="Image" width="1027" height="264" data-path="images/image-155.png" />
           </Frame>
       * Select permissions: **[Application.Read](http://Application.Read).All**
       * Select permissions: **Calendars.ReadWrite**
    7. Click **Add permissions.**
    8. Click **Grant admin consent** for the recently added permissions.

    <Frame>
      <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-155.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=fc7f6f41d0e0566f98fc2f2587567723" alt="Image 155" width="1027" height="264" data-path="images/image-155.png" />
    </Frame>

    9. Navigate to **Certificates & secrets** in the left menu.
    10. Click **+ New client secret.**
        * Enter a Description and Expiration.
            <Frame>
              <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-156.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=184bf5d755a94391a3d68c99b4946f09" alt="Image" width="569" height="141" data-path="images/image-156.png" />
            </Frame>
    11. Copy the **Secret Value** and save for later.
            <Frame>
              <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-157.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=75ac7a63cd7c6ac83b3ab2acaf4abc39" alt="Image 157" width="1016" height="201" data-path="images/image-157.png" />
            </Frame>
    12. Navigate to **Overview** in the left menu.
    13. Copy the **Application (client) ID** and **Directory (tenant) ID** and save for later.

    <Frame>
      <img src="https://mintcdn.com/gorelo/scuuS2AtqufkDnrp/images/image-158.png?fit=max&auto=format&n=scuuS2AtqufkDnrp&q=85&s=206440fff233cee3a1fe4cdf62462623" alt="Image" width="780" height="281" data-path="images/image-158.png" />
    </Frame>
  </Step>

  <Step title="Integrate in Gorelo.">
    1. Navigate to **Settings >** **[Integrations](https://app.gorelo.io/Admin/admin-settings#integrations).**
    2. Click the **⚙️cog** icon to configure **Outlook.**
    3. Enter the Client ID, Tenant ID and Secret Key you saved from earlier.
    4. Click **Connect.**
    5. Each user will then need to toggle on sync via their calendar in Gorelo.

    <Frame>
      <img src="https://mintcdn.com/gorelo/3NPS7lyCakyT3jy6/images/image-159.png?fit=max&auto=format&n=3NPS7lyCakyT3jy6&q=85&s=41e3018877d2dd3ea5aa24fcfaf04905" alt="Image" width="857" height="295" data-path="images/image-159.png" />
    </Frame>
  </Step>
</Steps>
