GetUser
Queries the details of an EIAM account.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| UserId |
string |
Yes |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| User |
object |
The account object data. |
|
| UserId |
string |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| Username |
string |
The username of the account. |
name001 |
| DisplayName |
string |
The display name of the account. |
display_name001 |
| PasswordSet |
boolean |
Indicates whether the password is set. |
false |
| PhoneRegion |
string |
The country calling code of the phone number. Example: 86 for the Chinese mainland. The code does not include the 00 or + prefix. |
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 of the account. |
user@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. This ID is used to associate external data with the IDaaS account. The default value is the IDaaS account ID. Note
Note: The external ID must be 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 the self-built type, the default value is the instance ID. For other types, the value corresponds to the enterprise ID of the respective source. For example, the DingTalk source corresponds to 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, in UNIX timestamp format. Unit: milliseconds. |
1652085686179 |
| PasswordExpireTime |
integer |
The expiration time of the password, in UNIX timestamp format. Unit: milliseconds.
|
1652085686179 |
| RegisterTime |
integer |
The registration time of the account, in UNIX timestamp format. Unit: milliseconds. |
1652085686179 |
| LockExpireTime |
integer |
The lock expiration time, in UNIX timestamp format. Unit: milliseconds. |
1652085686179 |
| CreateTime |
integer |
The creation time of the account, in UNIX timestamp format. Unit: milliseconds. |
1652085686179 |
| UpdateTime |
integer |
The most recent update time of the account, in UNIX timestamp format. Unit: milliseconds. |
1652085686179 |
| Description |
string |
The description of the account. |
Test account |
| OrganizationalUnits |
array<object> |
The list of organizational units to which the account belongs. |
|
|
object |
The organizational unit object information. |
||
| OrganizationalUnitId |
string |
The ID of the organizational unit. |
ou_wovwffm62xifdziem7an7xxxxx |
| OrganizationalUnitName |
string |
The name of the organizational unit. |
test_ou_name |
| Primary |
boolean |
Indicates whether the organization is the primary organization. |
true |
| PrimaryOrganizationalUnitId |
string |
The ID of the primary organizational unit to which the account belongs. |
ou_wovwffm62xifdziem7an7xxxxx |
| CustomFields |
array<object> |
The list of custom fields of the account. |
|
|
object |
The custom field object. |
||
| FieldName |
string |
The identifier of the custom field. |
age |
| FieldValue |
string |
The value of the custom field. |
10 |
| Groups |
array<object> |
The list of groups to which the account belongs. |
|
|
object |
The group object to which the account belongs. |
||
| GroupId |
string |
The ID of the organizational unit. |
group_d6sbsuumeta4h66ec3il7yxxxx |
| GroupName |
string |
The name of the organizational unit. |
group_test_name |
| Description |
string |
The description of the organizational unit. |
this is a test. |
| InstanceId |
string |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| PreferredLanguage |
string |
The preferred language. |
en-US |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"User": {
"UserId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"Username": "name001",
"DisplayName": "display_name001",
"PasswordSet": false,
"PhoneRegion": "86",
"PhoneNumber": "156xxxxxxx",
"PhoneNumberVerified": true,
"Email": "user@example.com",
"EmailVerified": true,
"UserExternalId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"UserSourceType": "build_in",
"UserSourceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"Status": "enabled",
"AccountExpireTime": 1652085686179,
"PasswordExpireTime": 1652085686179,
"RegisterTime": 1652085686179,
"LockExpireTime": 1652085686179,
"CreateTime": 1652085686179,
"UpdateTime": 1652085686179,
"Description": "Test account",
"OrganizationalUnits": [
{
"OrganizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
"OrganizationalUnitName": "test_ou_name",
"Primary": true
}
],
"PrimaryOrganizationalUnitId": "ou_wovwffm62xifdziem7an7xxxxx",
"CustomFields": [
{
"FieldName": "age",
"FieldValue": "10"
}
],
"Groups": [
{
"GroupId": "group_d6sbsuumeta4h66ec3il7yxxxx",
"GroupName": "group_test_name",
"Description": "this is a test."
}
],
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"PreferredLanguage": "en-US"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.