全部產品
Search
文件中心

Drive and Photo Service:微軟帳號登入配置

更新時間:Aug 21, 2026

本文介紹如何配置微軟帳號以登入阿里雲盤企業版。

1、啟用微軟配置開關

  • 管理員進入管理主控台>專屬登入配置>微軟配置。

  • 啟用微軟配置。

  • 功能啟用並配置登入設定資訊後,使用者即可使用微軟帳號進行登入。

2、如何擷取登入設定資訊

步驟一:擷取ClientID和租戶ID

View 按鈕位於首頁 Manage Azure Active Directory 卡片中。

  • 進入App registrations,點擊New registration。

  • 填寫Redirect URL地址。

    重要

    樣本中的domainId修改為您的實際企業代碼。

    回調地址格式為https://domainId.api.aliyunpds.com/v2/oauth/callback。

在 Name 中填寫應用程式名稱(如 PDS測試),在 Supported account types 中選擇 Accounts in this organizational directory only (Single tenant)。

  • 記錄Application(client)ID和Directory(tenant)ID資訊,點擊Add a certificate or secret。

步驟二:建立ClientSecret

  • 建立一個client secret,填寫對應資訊。

在 Certificates & secrets 頁面單擊 + New client secret,在彈出的 Add a client secret 面板中填寫 Description(例如「PDS測試」),選擇 Expires 到期時間(例如「730 days (24 months)」),然後單擊 Add。

  • 記錄value資訊。

在應用的 Certificates & secrets 頁面,選擇 Client secrets 頁簽,單擊 + New client secret。建立完成後,在 Value 列單擊複製按鈕儲存密鑰值。

3、進入阿里雲盤企業版,輸入登入設定資訊

  • 返回阿里雲盤企業版,進入管理主控台>專屬登入配置>微軟配置。

  • 將您複製的Application(client)ID對應輸入到阿里雲盤企業版中微軟配置介面的ClientID中。

  • 將您複製的ClientSecret對應輸入到阿里雲盤企業版中微軟配置介面的ClientSecret中。

  • 將您複製的Directory(tenant)ID對應輸入到阿里雲盤企業版中微軟配置介面的租戶ID中。

  • 點擊儲存,即配置成功。

確保微軟配置開關處於開啟狀態。