GetUserByToken
Retrieves user information using the provided access token.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition, Enterprise Standard Edition |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Authorization
|
Product |
Resource |
Required permission |
|
organization settings |
User |
Read-only |
Request syntax
GET https://{domain}/oapi/v1/platform/user
Request |
Enterprise standard editionExample request
Enterprise dedicated editionExample request
|
Request headers |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
None |
|
Response parameters |
Response example
|
|
createdAt The timestamp of user creation. |
|
|
email The email address of the user. |
|
|
id The user ID. |
|
|
lastOrganization The ID of the organization the user last accessed. |
|
|
name The display name of the user. |
|
|
staffId The employee ID. |
|
|
sysDeptIds An array of the user's department IDs. |
|
|
username The login name of the user. |
Error codes
For more information, see Error code center.