GetUser
Queries the details of an EIAM account.
Try it now
Test
RAM authorization
Request syntax
GET /v2/{instanceId}/{applicationId}/users/{userId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| applicationId |
string |
Yes |
The application ID. |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
| userId |
string |
Yes |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Authorization |
string |
Yes |
The authorization information. Format: Bearer ${access_token}. Example: Bearer ATxxxx. |
Bearer AT8csE2seYxxxxxij |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response result. |
||
| instanceId |
string |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| organizationalUnits |
array<object> |
The list of organizations to which the account belongs. |
|
|
object |
The organization object. |
||
| organizationalUnitId |
string |
The organization ID. |
ou_wovwffm62xifdziem7an7xxxxx |
| organizationalUnitName |
string |
The organization name. |
name001 |
| primary |
boolean |
Indicates whether the organization is the primary organization. |
true |
| primaryOrganizationalUnitId |
string |
The ID of the primary organization to which the account belongs. |
ou_wovwffm62xifdziem7an7xxxxx |
| customFields |
array<object> |
The list of extended fields of the account. |
|
|
object |
The extended field data object. |
||
| fieldName |
string |
The identifier of the extended field. |
age |
| fieldValue |
string |
The field value. Field values of any data type are returned as strings. For example, a Boolean value is returned as "true" or "false". |
Field value |
| userId |
string |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| username |
string |
The username. |
name001 |
| displayName |
string |
The display name of the account. |
display_name001 |
| passwordSet |
boolean |
Indicates whether the password is set. |
true |
| phoneRegion |
string |
The phone region code. For example, the region code for the Chinese mainland is 86, without 00 or +. |
86 |
| phoneNumber |
string |
The phone number of the account. |
156xxxxxxx |
| phoneNumberVerified |
boolean |
Indicates whether the phone number is verified. A value of true indicates that the phone number has been verified by the user or set as verified by the administrator. A value of false indicates that the phone number is not verified. |
true |
|
string |
The email address. |
example@example.com |
|
| emailVerified |
boolean |
Indicates whether the email address is verified. A value of true indicates that the email address has been verified by the user or set as verified by the administrator. A value of false indicates that the email address is not verified. |
true |
| userExternalId |
string |
The external ID of the account. It is used to map external data to the IDaaS account. The default value is the IDaaS account ID. Note: The external ID is unique within the same source type and source ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| userSourceType |
string |
The source type of the account. Valid values:
|
build_in |
| userSourceId |
string |
The source ID of the account. For self-managed accounts, the default value is the instance ID. For other types, the value corresponds to the enterprise ID of the respective source. For example, for accounts imported from DingTalk, the value is the corpId of the DingTalk enterprise. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| status |
string |
The status of the account. Valid values:
|
enabled |
| accountExpireTime |
integer |
The expiration time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| registerTime |
integer |
The registration time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| lockExpireTime |
integer |
The expiration time of the account lock. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| createTime |
integer |
The creation time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| updateTime |
integer |
The last update time of the account. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| description |
string |
The description of the account. |
Test account |
| groups |
array<object> |
The list of groups to which the account belongs. |
|
|
object |
The group object. |
||
| groupId |
string |
The group ID. |
group_ufdsasn35ea5lmthk267xxxxx |
| groupName |
string |
The group name. |
name_test |
| description |
string |
The group description. |
description_demo |
Examples
Success response
JSON format
{
"instanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"organizationalUnits": [
{
"organizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
"organizationalUnitName": "name001",
"primary": true
}
],
"primaryOrganizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
"customFields": [
{
"fieldName": "age",
"fieldValue": "字段数据值"
}
],
"userId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"username": "name001",
"displayName": "display_name001",
"passwordSet": true,
"phoneRegion": "86",
"phoneNumber": "156xxxxxxx",
"phoneNumberVerified": true,
"email": "example@example.com",
"emailVerified": true,
"userExternalId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"userSourceType": "build_in",
"userSourceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"status": "enabled",
"accountExpireTime": 1652085686179,
"registerTime": 1652085686179,
"lockExpireTime": 1652085686179,
"createTime": 1652085686179,
"updateTime": 1652085686179,
"description": "测试账户",
"groups": [
{
"groupId": "group_ufdsasn35ea5lmthk267xxxxx",
"groupName": "name_test",
"description": "description_demo"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.