Querying Details About Specified Users in Batches
Function
This API is used to query details about specified users in batches. It can be called only from the organization's management account or from a delegated administrator account of a cloud service.
URI
POST /v1/identity-stores/{identity_store_id}/users/batch-query
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
identity_store_id |
Yes |
String |
Globally unique ID of an identity source. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Security-Token |
No |
String |
Security token (session token) of your temporary security credentials. If a temporary security credential is used, this header is required. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
user_ids |
Yes |
Array of strings |
List of unique user IDs. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
users |
Array of DescribeUserResp objects |
List of user details. |
Parameter |
Type |
Description |
---|---|---|
addresses |
Array of AddressDto objects |
List of user addresses. |
display_name |
String |
Display name of a user. |
emails |
Array of EmailDto objects |
Email address list of a user. |
external_id |
String |
Identifier assigned by an external identity source to a resource. |
external_ids |
Array of ExternalIdDto objects |
External ID list of a user. |
identity_store_id |
String |
Globally unique ID of an identity source. |
locale |
String |
Geographical area or location of a user. |
name |
NameDto object |
User's name. |
nickname |
String |
Nickname of a user. |
phone_numbers |
Array of PhoneNumberDto objects |
Phone number list of a user. |
preferred_language |
String |
User's preferred language. |
profile_url |
String |
URL associated with a user. |
timezone |
String |
User time zone. |
title |
String |
User title. |
user_id |
String |
Globally unique ID of an IAM Identity Center user in the identity source. |
user_name |
String |
Username, which uniquely identifies a user. |
user_type |
String |
User type. |
created_at |
Long |
Timestamp when a user is created. |
created_by |
String |
Creator. |
updated_at |
Long |
Timestamp when a user is updated. |
updated_by |
String |
Updater. |
email_verified |
Boolean |
Boolean value, indicating whether the email address of a user is verified. |
enabled |
Boolean |
Boolean value, indicating whether a user is enabled. |
enterprise |
EnterpriseDto object |
User work information. |
Parameter |
Type |
Description |
---|---|---|
country |
String |
Country or region. |
formatted |
String |
Formatted address to be displayed. |
locality |
String |
Location. |
postal_code |
String |
Postal code. |
primary |
Boolean |
Boolean value, indicating whether this is a user's primary address. |
region |
String |
Region. |
street_address |
String |
Street. |
type |
String |
Address type. |
Parameter |
Type |
Description |
---|---|---|
primary |
Boolean |
Boolean value, indicating whether this is a user's primary email address. |
type |
String |
Email address type. |
value |
String |
Email address. |
verification_status |
String |
Verification status of an email address. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Resource ID issued by an external identity provider. |
issuer |
String |
Issuer of an external ID. |
Parameter |
Type |
Description |
---|---|---|
family_name |
String |
Family name of a user. |
formatted |
String |
Formatted name to be displayed. |
given_name |
String |
Given name of a user. |
honorific_prefix |
String |
Prefix of a user's name. |
honorific_suffix |
String |
Suffix of a user's name. |
middle_name |
String |
Middle name of a user. |
Parameter |
Type |
Description |
---|---|---|
primary |
Boolean |
Boolean value, indicating whether this is a user's primary phone number. |
type |
String |
Phone number type. |
value |
String |
Phone number. |
Parameter |
Type |
Description |
---|---|---|
cost_center |
String |
Cost Center. |
department |
String |
Department. |
division |
String |
Division. |
employee_number |
String |
Employee ID. |
manager |
ManagerDto object |
Manager. |
organization |
String |
Organization. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
request_id |
String |
Unique ID of a request. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
request_id |
String |
Unique ID of a request. |
encoded_authorization_message |
String |
Encrypted error message. |
Example Request
Querying details about specified users in batches
POST https://{hostname}/v1/identity-stores/{identity_store_id}/users/batch-query { "user_ids" : [ "c59a3e4f-2cb2-4649-9874-3880664xxx" ] }
Example Response
Status code: 200
Successful
{ "users" : [ { "addresses" : [ { "country" : "country", "formatted" : "formatted", "locality" : "locality", "postal_code" : "postalCode", "primary" : false, "region" : "region", "street_address" : "streetAddress", "type" : "work" } ], "display_name" : "displayNamexxx", "emails" : [ { "primary" : true, "type" : "work", "value" : "xx@xx.com", "verification_status" : "NOT_VERIFIED" } ], "external_id" : "nickName", "external_ids" : [ { "id" : "nickName" } ], "identity_store_id" : "d-a23adaabca", "name" : { "family_name" : "familyNamedhf", "formatted" : "givenNameupdategfgdhf familyNamedhf", "given_name" : "givenNameupdategfgdhf" }, "phone_numbers" : [ { "primary" : true, "type" : "work", "value" : "100845277237" } ], "title" : "title", "user_id" : "c59a3e4f-2cb2-4649-9874-38xxxx", "user_name" : "your name", "created_at" : 1753794283870, "created_by" : "SCIM/87905e14-e3ab-43dd-8a48-xxxx", "updated_at" : 1753794283878, "updated_by" : "SCIM/87905e14-e3ab-43dd-8a48-xxx", "email_verified" : false, "enabled" : true, "enterprise" : { "department" : "department", "employee_number" : "employeeNumber" } } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Successful. |
400 |
Bad request. |
403 |
Forbidden. |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot