All Products
Search
Document Center

Drive and Photo Service:Configuration of a Microsoft account

Last Updated:Oct 20, 2025

This topic describes how to configure a Microsoft account to log on to Cloud Drive for Enterprises (CDE).

1. Enable Microsoft configuration

  • Log on to CDE as an administrator. In the admin console, choose Exclusive Logon Configuration > Microsoft Configuration.

  • Turn on Microsoft Configuration.

  • After the feature is enabled and the logon settings are configured, users can log on with their Microsoft accounts.image

2. Obtain the logon settings information

Step 1: Obtain the client ID and tenant ID

image.png

  • Go to App registrations and click New registration.

image.png

  • Fill in the redirect URI.

    Important

    Replace domainId with your actual enterprise code.

    The callback URL format is https://domainId.api.aliyunpds.com/v2/oauth/callback.

image.png

  • Note down the values of Application (client) ID and Directory (tenant) ID. Then, click Add a certificate or secret.

image.png

Step 2: Create a client secret

  • Create a client secret and fill in the corresponding information.

image.png

  • Note down the value.

image.png

3. Fill in the logon settings information in CDE

  • Return to CDE. In the admin console, choose Exclusive Logon Configuration > Microsoft Configuration.

  • Enter the value of Application (client) ID that you noted down into the ClientID field on the Microsoft configuration page of CDE.

  • Enter the value of the client secret that you noted down into the ClientSecret field on the Microsoft configuration page of CDE.

  • Enter the value of Directory (tenant) ID that you noted down into the Tenant ID field on the Microsoft configuration page of CDE.

  • Click Save.

image.png