2haohr as Identity Source
IDaaS supports enterprises importing user and organizational data from multiple identity sources into the IDaaS platform. This guide explains how to configure the 2haohr identity source in IDaaS to synchronize organizational and user data.
Prerequisites
- Administrator permissions for the 2haohr open platform.
- Administrator permissions for the IDaaS Enterprise Center.
Configuration Flow

Procedure
Obtain Parameters from 2haohr
Log in to the 2haohr Enterprise Center and access the open platform.

On the open platform page, obtain the
corpIDandcorpSecret.
Configure the 2haohr Identity Source in IDaaS
Log in to the IDaaS Enterprise Center, choose Users > Identity Source Management from the top navigation bar, click Add Identity Source, and select 2haohr.

Customize the identity source name, fill in the enterprise ID and enterprise secret as prompted, then click OK to save.
Enter the detail page of the newly created identity source to view or update the Basic Configuration, including connection parameters and synchronization mechanism.

Switch to the Advanced Configuration tab. It is recommended to keep the default values or adjust them according to actual requirements.

Parameter Description Select Root Organization Select an organization node in IDaaS as the root node for the synchronized 2haohr organizations. Organization Matching Policy By default, IDaaS organization codes are associated with 2haohr institution codes. Create Organization Default is Yes. Update Organization Default is Yes. Delete Organization By default, organizations are retained (i.e., when an organization is deleted in 2haohr, it is retained in IDaaS). You can also disable or delete organizations. User Matching Policy By default, IDaaS user mobile numbers and usernames are associated with 2haohr user mobile numbers and usernames. Create User Default is Yes. Update User Default is Yes. Delete User By default, users are disabled (i.e., when a user is deleted in 2haohr, the user is disabled in IDaaS). You can also retain or delete users. Safety Threshold Adjustment Sets the maximum threshold ratio for changes such as deleting users, deleting organizations, or changing organization hierarchy in the upstream identity source.
Threshold = (Difference between platform-recovered data and this recovery / Recovered data) × 100%. If the upstream identity source disables or deletes data exceeding the threshold, the platform will not perform the disable or delete operation.After configuration, switch to the Object Model tab, select Mapping Definition, and configure mapping relationships between organization/user attributes in 2haohr and those in IDaaS according to project requirements.
The object model supports mapping attributes of users and organizations from the 2haohr identity source to IDaaS user and organization attributes. After configuration, user and organization attributes are recovered from 2haohr into IDaaS.

- Execution Mode: Sets when the attribute needs to be mapped.
- Do Not Map: The attribute will not be synchronized to IDaaS.
- Create: The attribute is synchronized only during creation.
- Update: The attribute is synchronized only during update.
- Create and Update: The attribute is synchronized during both creation and update.
- Transformation Mode: Sets how the attribute is mapped.
- Auto Transform: Synchronize the value as-is from the identity source.
- Script Transform: Use this when the value from the identity source does not meet the required format. Refer to Script Mapping Methods.
- Execution Mode: Sets when the attribute needs to be mapped.
After configuration, click Execute Synchronization to run the synchronization immediately.
TIP
If the synchronization mechanism in the basic configuration is set to scheduled synchronization, there is no need to manually execute the synchronization task here.
After execution, switch to the Synchronization Events page to view all synchronization tasks for this identity source. Click Details in the Operation column of a task to view the import results, or go to the Users > Users and Organizations page to view the imported data.