> ## 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 集成

> 通过 Azure AD 应用程序注册在 Gorelo 和 Outlook 之间设置双向日历同步，让事件能够在两个方向上无缝地在用户日历之间流动。

Gorelo 与 Outlook Calendar 集成，允许在 Gorelo 用户日历和 Outlook 中的主日历之间进行双向同步（需要 SSO 与 M365）。

<Steps>
  <Step title="在 AzureAD 中创建应用程序。">
    1. 导航到 **[Azure](https://portal.azure.com/) > Microsoft Entra ID。**
    2. 在左侧菜单中，点击 **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. 点击 **+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. 点击 **Register。**
    5. 从左侧菜单导航到 **API permissions**。
    6. 点击 **Add a permission：**
       * 选择 **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>
       * 选择 **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>
       * 选择权限：**[Application.Read](http://Application.Read).All**
       * 选择权限：**Calendars.ReadWrite**
    7. 点击 **Add permissions。**
    8. 为最近添加的权限点击 **Grant admin consent**。

    <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. 在左侧菜单导航到 **Certificates & secrets**。
    10. 点击 **+ New client secret。**
        * 输入描述和过期时间。
            <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. 复制 **Secret Value** 并保存以备后用。
            <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. 在左侧菜单导航到 **Overview**。
    13. 复制 **Application (client) ID** 和 **Directory (tenant) ID** 并保存以备后用。

    <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="在 Gorelo 中集成。">
    1. 导航到 **Settings >** **[Integrations](https://app.gorelo.io/Admin/admin-settings#integrations)。**
    2. 点击 **⚙️ 齿轮**图标以配置 **Outlook。**
    3. 输入你先前保存的 Client ID、Tenant ID 和 Secret Key。
    4. 点击 **Connect。**
    5. 然后，每个用户都需要通过其在 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>
