Users
The users query target allows you to query the users in your Vault.
To retrieve user fields and field properties, use the Retrieve User Metadata API.
When querying users across Vaults, Vault uses the private key values (external, readOnly, and full) for the license_type__v field.
User Query Examples
Section link for User Query ExamplesThe following are examples of user queries.
Query: Retrieve Users With a Specific License Type
Section link for Query: Retrieve Users With a Specific License TypeThe following query uses the external private key value instead of external__v to retrieve the first and last names of all external users:
SELECT user_first_name__v, user_last_name__v, license_type__v
FROM users
WHERE license_type__v = 'external'Response: Retrieve Users With a Specific License Type
Section link for Response: Retrieve Users With a Specific License TypeThe response returns external__v instead of the private key value external:
{
"responseStatus": "SUCCESS",
"responseDetails": {
"pagesize": 1000,
"pageoffset": 0,
"size": 1,
"total": 1
},
"data": [
{
"user_first_name__v": "Abigail",
"user_last_name__v": "Smith",
"license_type__v": "external__v"
}
]
}