Skip to main content
Call this API to get the details of a specified user.

API call description

This API lets you query the details of a regular account user or an Enterprise Account user. Because parameter usage differs significantly between the two scenarios, the documentation is split by account type for easier reference: If you need to obtain permissions for fields such as phone number and mail, the method varies by App type.
  • For an Internal app to obtain a user’s phone number and mail, add the permission to access phone numbers and mail in Contacts. To add the permission: Sign in to the DingTalk Developer Console > Internal Development > find the app to which you want to add the permission > Manage permissions > Contacts Management. Select Employee phone number and Mail and other Profile information, and click Request permission.
  • For a Third-party enterprise app to obtain a user’s phone number and mail, use the DingTalk unified authorization suite.

Request

Query parameters

Request body

Request example

Java
Python
PHP
C#

Response

Response body

Response body example

Error codes

If the API call returns an Error, look up the solution by error message in the Global error codes documentation.