Skip to main content
This document helps you gain a comprehensive understanding of DingTalk Contacts. By reading this document, organization managers, IT leads, and developers can quickly grasp the capability boundaries of Contacts and lay the foundation for subsequent system integration and business innovation.

What is DingTalk Contacts

DingTalk Contacts is the core infrastructure for unified management of internal organizational information. It digitally represents the Organization Structure and User information of an Organization, providing users with the basic capability to quickly locate people and collaborate efficiently. For more feature details, see DingTalk User Guide - Organization Contacts.
DimensionDescription
EssenceA digital representation carrier of the Organization Structure
FormTree-structured Department hierarchy + User information database
FunctionThe hub that connects people, matters, and resources within an Organization, supporting scenarios such as Approval flows, message routing, and Permissions control

How to view Contacts

Organization Admin perspective

Organization Admins can manage and view Contacts in the following ways:
  • DingTalk Admin Console: Sign in to the DingTalk Admin Console, and go to the Internal Contacts module to perform full management and configuration of Contacts.
  • Contacts Settings: Configure advanced features such as Contacts visibility rules, Custom fields, and Executive mode.

Regular users

Regular Organization Users can view Contacts through the following endpoints:
  • DingTalk for PC: In the DingTalk PC client, click the Contacts tab to view the Organization Structure and contact details.
  • DingTalk Mobile: In the DingTalk mobile App, go to the Contacts page to browse by Department or search by keyword.
  • DingTalk for Web: Access Contacts features through the DingTalk web version.

Open capabilities overview

Open API list

Contacts provides extensive Open API capabilities. Developers can use the APIs to integrate Contacts with their business systems.

User contacts

APIDescriptionAPI version
Get the user’s contact profileGet the Profile of an Organization User in Contacts.New

Contacts permissions

APIDescriptionAPI version
Get the Contacts permission scopeGet the Contacts permission scope.Legacy

User management

APIDescriptionAPI version
Create a userCreate a new user.Legacy
Update user informationUpdate the specified user information.Legacy
Delete a userDelete a specified user by user ID.Legacy
Query user detailsGet the details of a specified user.Legacy
Get basic information of department usersGet basic information of users in a specified Department.Legacy
Get the user ID list of a departmentGet the user ID list of a specified Department.Legacy
Get details of department usersGet the details of users in a specified Department.Legacy
Get the number of employeesGet the number of Employees.Legacy
Get the list of employees who have not signed in to DingTalkQuery the list of Employees in the Organization who have not signed in to DingTalk within a specified period.Legacy
Query users by phone numberGet the user ID by phone number.Legacy
Get the user ID by unionIdGet the user ID by unionId.Legacy
Get the Admin listQuery the Admin list.Legacy
Get the Contacts permission scope of an AdminGet the Contacts permission scope of an Admin.Legacy
Get the App Management permissions of an AdminGet the App Management permissions of an Admin.Legacy
Query the resignation record listQuery the list of resignation records in the Organization.New
Set Executive modeSet the Executive mode for an Employee.New
Get user Executive mode settingsGet the details of a user’s Executive mode settings.New
Delete user attribute visibility settingsDelete attribute Field visibility settings of an Organization Employee.New
Get user attribute visibility settingsGet attribute Field hiding settings of an Organization Employee.New
Set user attribute visibilityAdd or update attribute Field hiding settings of an Organization Employee.New
Search for user IDsSearch for user IDs by user Name.New
Sort Contacts user IDsSort user IDs by the pinyin of user Names.New

Department management

APIDescriptionAPI version
Create a departmentCreate a new Department.Legacy
Update a departmentUpdate Department information.Legacy
Delete a departmentDelete a specified Department by Department ID.Legacy
Search for a department IDSearch for a Department ID.New
Get department detailsGet the details of a specified Department by Department ID.Legacy
Get the department listGet basic information about the next-level Departments.Legacy
Get the sub-department ID listGet the list of all direct sub-departments under an Organization Department.Legacy
Get all parent departments of a specified departmentGet the list of all parent department IDs of a specified Department.Legacy
Get all parent departments of a specified userQuery all parent Departments to which a specified user belongs.Legacy

Role management

APIDescriptionAPI version
Create a roleCreate a new Role.Legacy
Create a role groupCreate a role group.Legacy
Update the role nameUpdate the Role Name.Legacy
Bulk add employee rolesBulk add Roles for Employees.Legacy
Delete a roleDelete a specified Role by Role ID.Legacy
Bulk delete employee rolesBulk delete Roles for Employees.Legacy
Set the management scope of role membersSet the management scope of Role users.Legacy
Get the role group listGet role group information.Legacy
Get the role listGet the Role list.Legacy
Get role detailsGet the details of a specified Role by Role ID.Legacy
Get the employee list of a specified roleGet the list of Employees assigned to a specified Role.Legacy

External contacts

APIDescriptionAPI version
Add an external contactAdd an External contact to the Organization.Legacy
Delete an external contactDelete an External contact from the Organization.Legacy
Update an external contactUpdate an External contact of the Organization.Legacy
Get the external contact listGet the list of External contacts of the Organization.Legacy
Get the external contact tag listGet the Tags of External contacts of the Organization.Legacy
Get external contact detailsGet the details of an External contact of the Organization.Legacy

Enterprise Account

APIDescriptionAPI version
Create an SSO Enterprise AccountCreate a new user with a single sign-on Enterprise Account.Legacy
Change the DingTalk ID of an Enterprise AccountChange the DingTalk ID of an Enterprise Account.New
Create a DingTalk-built Enterprise AccountCreate a new user with a DingTalk-built Enterprise Account.Legacy
Update Enterprise Account user informationUpdate the specified Enterprise Account user information.Legacy
Query Enterprise Account user detailsGet the details of a specified Enterprise Account user.Legacy
Enable an Enterprise AccountEnable a specified Enterprise Account.New
Disable an Enterprise AccountDisable a specified Enterprise Account.New
Force sign-out of an Enterprise AccountForce sign-out of a specified Enterprise Account.New
Query the status of an Enterprise AccountQuery the enabled status of an Enterprise Account.New
Query the organizations an Enterprise Account ownsQuery the Organizations in which the Enterprise Account holds the creator role, and get information about those Organizations.New
Authorize an Enterprise Account to join multiple organizationsAuthorize an Enterprise Account to join multiple Organizations.New
Invite Enterprise Accounts from other organizations to joinAdd Enterprise Accounts from other Organizations to this Organization.Legacy
Get details of department Enterprise Account usersGet the details of users in a specified Department.Legacy
Query Enterprise Account users by phone numberGet the user ID of an Enterprise Account user by phone number.Legacy
Transfer an Enterprise Account to the Super Admin (creator)Transfer the ownership of an Organization owned by an Enterprise Account in this Organization to another Enterprise Account.New
Query the original dingId by migrated dingIdQuery the original dingId by the migrated dingId.New
Query the original unionId by migrated unionIdQuery the original unionId by the migrated unionId.New
Query the migrated dingId by original dingIdQuery the migrated dingId by the original dingId.New
Query the migrated unionId by original unionIdQuery the migrated unionId by the original unionId.New
Authorize other organizations to view Enterprise Account information of this organizationSpecify the Fields of Enterprise Account information of this Organization that other Organizations can view.New

Organization management

APIDescriptionAPI version
Get Organization Authentication informationGet Organization Authentication information.New
Get Organization invitation informationGet the invitation information of the Organization.New
Get the latest DingTalk Index of the OrganizationGet the latest DingTalk Index of the Organization.New
Check whether an Admin has App Management permissionsCheck whether an Organization Admin has App Management permissions.New
APIDescriptionAPI version
Get department detailsGet Department details by Department ID.Legacy
Get the user list of a departmentGet the user list of a Department.Legacy
Get the department listGet the industry Contacts Department List by Department ID.Legacy
Get department user detailsGet details of Department users.Legacy
Get Organization informationGet Organization information of industry Contacts.Legacy

Contacts ID translation

APIDescriptionAPI version
Asynchronously translate Contacts IDsStart an asynchronous translation of Contacts ID content, replacing user IDs and Department IDs within the Contacts permission scope of the product solution provider.New
Get the result of an asynchronous translation taskGet the result of a submitted translation task.New

Contacts visibility management

APIDescriptionAPI version
Get Contacts hiding settingsBulk get the list of Contacts hiding settings.New
Delete Contacts hiding settingsDelete Contacts hiding settings.New
Add or update Contacts hiding settingsAdd or update Contacts hiding settings.New
Set Department visibility prioritySet the visibility priority of a Contacts Department.New
Add or modify Contacts viewing restriction settingsAdd or modify Contacts viewing restriction settings.New
Get the list of Contacts viewing restriction settingsGet the list of Contacts viewing restriction settings.New
Delete Contacts viewing restriction settingsDelete Contacts viewing restriction settings.New
APIDescriptionAPI version
Create an upstream-downstream organizationCreate an upstream-downstream Organization.New
Remove the Association with an organizationRemove the Association relationship with an Organization.New
Get the invitation information of upstream-downstream organizationsGet the invitation Link of upstream-downstream Organizations.New
Bulk approve partner organizations’ applications to joinBulk approve partner Organizations’ applications to join the upstream-downstream Organization.New
Update the attribute information of a partner organization within the upstream-downstream organizationUpdate the Attribute information of a partner Organization within the upstream-downstream Organization.New
Set the visibility scope of a partner organization within the upstream-downstream organizationSet the visibility scope of a partner Organization within the upstream-downstream Organization.New
Get information about upstream-downstream organizations the Organization has joined or applied to joinGet information about upstream-downstream Organizations the Organization has joined, or get information about upstream-downstream Organizations the Organization has applied to join.New
Get the organization and user information that has joined or is applying to join the upstream-downstream organizationGet the Organization and user information that has joined or is applying to join the upstream-downstream Organization by the upstream-downstream Organization ID.New
APIDescriptionAPI version
Remove the Association with an organizationRemove the Association relationship with an Organization.New
Get the trunk organization listGet the trunk Organization list.New
Get the branch organization listGet the branch Organization list.New
Bulk approve partner organizations’ applications to joinBulk approve branch Organizations’ applications to join the trunk Organization.New
Get authorization data for upstream-downstream organization branchesGet authorization data for upstream-downstream Organization branches.New
Set the visibility scope of a branch organization within the trunk organizationSet the visibility scope of a branch Organization within the trunk Organization.New
Update the attribute information of a branch organization within the trunk organizationUpdate the Attribute information of a branch Organization within the trunk Organization.New

Callback event list

Contacts supports callback events such as user changes, Department changes, Role changes, and Organization information changes. For more events, see the event subscription overview.

Tutorials

DingTalk provides sample integration flows for Contacts APIs.

Glossary

Employee ID

The Field code corresponding to Employee ID is job_number. The Employee ID of an Employee within an Organization does not have to be unique, so it cannot be used as a unique identifier for the Employee within the Organization. The Organization Admin signs in to the DingTalk Admin Console, and on the Contacts page, clicks the Employee Name to view the Employee ID. The Employee ID Field is Optional.

unionId

The unique identifier of a user within the scope of the current DingTalk Open Platform account. A single DingTalk Open Platform account can contain multiple open Apps, including ISV suite Apps and Internal apps. The unionId can be obtained by calling the Query user details API.

Role group and role

Role groups and Roles are defined within the Organization to facilitate the management of Employee identity information. An Employee can hold multiple Role identities at the same time. The Organization Admin signs in to the DingTalk Admin Console, goes to the Contacts > Internal Contacts Management page, and clicks Role to view role groups and Roles.

Contacts extension fields

You can add extension Fields to Contacts. The Organization Admin signs in to the DingTalk Admin Console, and goes to Internal Contacts Settings > Contacts Information > Add Custom Field to add Custom fields.