All Products
Search
Document Center

Secure Access Service Edge:Connect to a DingTalk identity provider

Last Updated:Mar 31, 2026

SASE enforces security policies based on user identity. If your company manages its organization in DingTalk, connect DingTalk to SASE as an identity provider (IdP). Employees can then log on to the SASE app with their existing DingTalk accounts—no new identities needed.

Limits

  • Up to five identity providers can be enabled at the same time.

  • Only one custom identity provider can be enabled at a time.

If you have reached either limit, disable an existing IdP before enabling a new one.

Connect DingTalk to SASE

The setup has two phases: gathering credentials from the DingTalk Open Platform, then configuring the IdP in the SASE console.

Phase 1: Gather credentials from DingTalk Open Platform

Before opening the SASE console, collect the following values from the DingTalk Open Platform:

CredentialWhere to find it
CorpIdHomepage of the DingTalk Open Platform
AppKeyCredentials and Basic Information page of your app
AppSecretCredentials and Basic Information page of your app
AES Encryption Key (optional)Event Subscription page of your app
Encryption token (optional)Event Subscription page of your app
The AES Encryption Key and Encryption token are required only if you want to enable event subscription, which keeps SASE in sync with org-structure changes in real time.

Phase 2: Configure the identity provider in SASE

  1. Log on to the SASE console.

  2. In the navigation pane, choose Identity Authentication > Identity Access.

  3. On the Identity synchronization tab, click Create IdP.

  4. In the Create IdP panel, select DingTalk and click Configure.

  5. In the Basic Configurations wizard, fill in the fields described in the following table. At the bottom of the panel, three links are available for configuring the DingTalk Open Platform:

    Important

    Disabling an identity source prevents end users from accessing internal applications through the SASE app. Proceed with caution.

    FieldRequiredDescription
    IdP NameRequiredA name for this identity provider. Length: 2–100 characters. Allowed: Chinese characters, letters, digits, hyphens (-), and underscores (_).
    DescriptionOptionalA description that appears as the login title in the SASE client.
    IdP StatusRequiredEnabled: activate the IdP immediately after creation. Closed: create the IdP in a disabled state.
    CorpIdRequiredYour company's unique ID in DingTalk. Get it from the DingTalk Open Platform homepage.
    AppKeyRequiredThe AppKey of your DingTalk app. Get it from the Credentials and Basic Information page.
    AppSecretRequiredThe AppSecret of your DingTalk app. Get it from the Credentials and Basic Information page.
    DingTalk Type (Advanced Settings)RequiredSelect DingTalk Standard or Dedicated DingTalk.
    AES Encryption Key (Advanced Settings)OptionalRequired only if enabling event subscription. Get the aes_key from the Event Subscription page.
    Encryption token (Advanced Settings)OptionalRequired only if enabling event subscription. Get the encryption token from the Event Subscription page.
    Automatic SynchronizationOptionalWhen enabled, SASE syncs organizational data from DingTalk on the configured schedule. When disabled, sync must be triggered manually. For more information, see View synchronization records.
    Synchronize User InformationOptionalWhen enabled, SASE syncs employee information from DingTalk based on the Automatic Synchronization Cycle. Requires Automatic Synchronization to be enabled.
    Automatic Synchronization CycleOptionalHow often SASE pulls data from DingTalk. Set an interval between 1 hour and 24 hours.
    LOGOOptionalUpload a custom logo.
  6. Click Connectivity Test. After the test passes, click Next.

    If the connectivity test fails, verify that the server address and server port are correct.
  7. In the Synchronization Settings wizard, configure the sync scope and field mappings, then click Confirm.

    FieldDescription
    Organizational Structure SynchronizationSynchronize All: sync the entire org structure from DingTalk. Partially Synchronize: select specific org units to sync.
    Field Synchronization MappingMap DingTalk org fields to SASE fields. If the built-in Local Field After Mapping options don't meet your needs, click View Extended Fields in the upper-right corner to add, edit, or delete extended fields.

View synchronization records

  1. On the Identity synchronization tab, find the identity source and click Synchronize Records in the Actions column.

  2. On the Synchronize Records page, view the synchronization records for the identity source.

  3. In the Synchronization Task area on the left, click a sync task to see its details on the right.

    image

  4. Click Details in the Actions column to view the field data from the Third-party Data Source (DingTalk) and the SASE Data Source.

Trigger manual synchronization

If Automatic Synchronization is disabled, or if your org structure has changed and you need an immediate update:

  1. Click Create Synchronization Task and then click OK.

  2. Wait for the task to complete before viewing the results.

After synchronization completes, the updated org structure and employee information are available under Identity Authentication > Identity Access > Employee Center. For details, see Employee Center.

More operations

Disable automatic synchronization

Use either of the following methods:

  • On the Identity synchronization tab, find the identity source and turn off the switch in the Automatic Synchronization column.

  • In the Edit IdP panel, turn off the automatic synchronization switch.

Edit the DingTalk identity provider

On the Identity synchronization tab, find the DingTalk identity provider and click Edit in the Actions column.

Disable the DingTalk identity provider

On the Identity synchronization tab, find the DingTalk identity provider and turn off the switch in the IdP Status column.

Delete the DingTalk identity provider

On the Identity synchronization tab, find the DingTalk identity provider and click Delete in the Actions column.

What's next

Use the SASE built-in identity provider

If your organization doesn't use an external identity provider, build your organization with the SASE custom identity provider. See Configure a SASE identity provider.

Connect other identity providers

SASE supports identity providers including LDAP, DingTalk, WeCom, Lark, and IDaaS:

Manage user groups

To create user groups outside your org structure, see Manage user groups.