> ## 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 app registration 在 Gorelo 與 Outlook 之間設定雙向行事曆同步，讓事件能在使用者行事曆之間無縫雙向流動。

Gorelo 與 Outlook Calendar 整合，可在 Gorelo 使用者行事曆與 Outlook 中的主要行事曆之間進行雙向同步（需 M365 SSO）。

<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。**
        * 輸入 Description 與 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. 複製 **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>
