SASE enforces security policies based on identity. If your enterprise already uses a DingTalk identity provider to manage its organizational structure, you can integrate it with SASE, which eliminates the need to create new identities for your employees. After the integration, employees can use their existing DingTalk accounts to log in to the SASE App for work. This article describes how to connect to a DingTalk identity provider.
Limitations
You can enable a maximum of five identity providers at the same time (only one custom identity provider can be enabled at a time). If you have already enabled the maximum number of identity providers, you must first disable an existing one before you can enable another one.
Configure and enable DingTalk identity provider
-
Log on to the SASE console.
-
In the left-side navigation pane, choose .
-
On the Identity synchronization tab, click Create IdP.
-
In the Create IdP panel, select DingTalk, and then click Configure to complete the configuration in the wizard.
-
In the Basic Configurations step, configure the following parameters.
Parameter
Description
IdP Name
Enter a name for the identity provider.
The name must be 2 to 100 characters long and can contain Chinese characters, letters, digits, hyphens (-), and underscores (_).
Description
Enter a description for the configuration.
This description appears as the login title in the SASE client, helping users identify the identity provider.
IdP Status
Configure the status for the identity source. The valid values are:
Enabled: The identity source is enabled after it is created.
Closed: The identity source is disabled after it is created.
ImportantIf you disable an identity source, end users cannot use the SASE app to access internal applications. Proceed with caution.
CorpId
The unique ID of your enterprise in DingTalk. Obtain this ID from the homepage of the DingTalk Open Platform.
AppKey
The AppKey for your application in the DingTalk Open Platform. Find the AppKey on the application's Credentials and Basic Information page on the DingTalk Open Platform.
AppSecret
The AppSecret for your application in the DingTalk Open Platform. Find the AppSecret on the application's Credentials and Basic Information page on the DingTalk Open Platform.
Advanced Settings
DingTalk Type: Select DingTalk Standard or Dedicated DingTalk.
Event Subscription: After you configure event subscription, organizational structure changes in DingTalk are synchronized to SASE in real time. This keeps SASE security policies effective when employee details change, for example, due to organizational adjustments or employee departures.
-
AES Encryption Key
Obtain the AES encryption key from the Event Subscription page of your application on the DingTalk Open Platform.
-
Encryption token
Obtain the encryption token from the Event Subscription page of your application on the DingTalk Open Platform.
Automatic Synchronization
After you enable the Automatic Synchronization switch, the system will automatically synchronize relevant information from DingTalk based on the synchronization mode.
If you do not enable Automatic Synchronization, you must manually synchronize the organizational structure. For more information, see View synchronization records.
Synchronize User Information
After you enable the Synchronize User Information switch, the system automatically synchronizes employee information from DingTalk based on the Automatic Synchronization Cycle.
NoteIf the Automatic Synchronization feature is disabled, the Synchronize User Information function does not run.
Automatic Synchronization Cycle
Set the Automatic Synchronization Cycle. You can set an automatic synchronization to run every 1 to 24 hours.
Logo
Upload a custom logo.
The following URLs are also provided for configuration. You can copy them from the panel.
-
Copy Request URL: Use this URL to configure subscription management in the DingTalk Open Platform.
-
Copy Application Homepage Address: Use this URL to view application details in the DingTalk Open Platform.
-
Copy Callback Domain Name: Use this value to configure the callback domain in the DingTalk Open Platform.
-
Click Connectivity Test. If the test is successful, click Next.
NoteIf a Connection Failed message appears, verify that the server address and port are correct.
-
In the Synchronization Settings step of the wizard, configure the synchronization scope for the organizational structure and the field mappings. Then, click Ok.
Parameter
Description
Organizational Structure Synchronization
Specifies the scope for organizational structure synchronization.
-
Synchronize All: Synchronizes the entire organizational structure from DingTalk to SASE.
-
Partially Synchronize: Allows you to select specific organizational units to synchronize.
Field Synchronization Mapping
Maps the fields of the DingTalk organizational structure to the corresponding fields in SASE.
NoteIf the built-in fields under Local Field After Mapping in SASE do not meet your business needs, you can click View Extended Fields in the upper-right corner of the list. In the View Extended Fields panel, you can add, edit, or delete extended fields.
-
View synchronization records
-
On the Identity synchronization tab, find the identity source that you added and click Synchronize Records in the Actions column.
-
On the Synchronize Records page, view the information synchronization records for the identity source.
-
In the Synchronization Task section on the left, click a specific task to view its synchronization details in the list on the right.

-
In the Actions column for a task, click Details to view the field information for the Third-party Data Source and SASE Data Source.
Manual synchronization
If you did not enable Automatic Synchronization when you configured the identity source, or if your directory structure has changed, you must synchronize the information manually. Click Create Synchronization Task and then click OK. After the synchronization task is complete, you can view the synchronization records.
After the synchronization is successful, you can view the synchronized organizational structure and user information on the tab. For more information, see Employee Center.
Disable automatic synchronization
-
On the Identity synchronization tab, find the identity source that you added and turn off the switch in the Automatic Synchronization column.
-
In the Edit IdP panel, turn off the automatic synchronization switch.
Edit DingTalk identity provider
On the Identity synchronization page, find the DingTalk identity provider and click Edit in the Actions column.
Disable DingTalk identity provider
On the Identity synchronization tab, find the DingTalk identity provider and turn off the switch in the IdP Status column.
Delete DingTalk identity provider
On the Identity synchronization page, find the DingTalk identity provider and click Delete in the Actions column.
Related topics
Best practices
Configure a custom identity provider
If your organization does not use an external identity provider, you can build your organizational structure by using the custom identity provider in SASE. For more information, see Connect to a custom identity provider.
Connect to third-party identity providers
If your organization uses LDAP, DingTalk, WeCom, Lark, or IDaaS to manage its organizational structure, you can connect your identity provider to SASE to import identity information.
Configure user groups
If you need to create user groups outside your organizational structure, see User group management.