Search for users, using a valid management key.
This API endpoint will search for users utilizing a valid management key. Searches can be defined with any combination of roles or tenants. You can also only send the request with an empty payload to return all users.
The response will include the following details on all users within an array of objects. The response includes the following; however, there are additional items in the response that you can see below by expanding the response 200 OK.
- loginIds
- userId
- name
- phone
- verified settings (phone, email)
- Tenant configurations - which tenantIds, which roleNames
Next Steps
You can then parse through the response in order to find any users which you may need to delete, update, etc.
See also
- See Manage Users for further details on managing users.
- See The User Object for further details on the user object.
Endpoint Authentication
Use authorization bearer header with the following format:
Authorization: Bearer \<ProjectId:ManagementKey\>
Authorization
Authorization
RequiredBearer <token>
< Project ID >:< Management Key > as bearer
In: header
Request Body
loginId
string
Search for specific login ID
tenantIds
array<string>
If not empty then users must be members of at least one of these tenants
roleNames
array<string>
If not empty then users must have one of the specified roles
limit
integer
Default is 100 if not specified
Format:"int32"
text
string
Full text search across relevant columns
page
integer
Page number starting with 0 for the first page
Format:"int32"
ssoOnly
boolean
Bring only users that have SSO external IDs
Default:false
withTestUser
boolean
Return also users which are test users
testUsersOnly
boolean
Return only test users
Default:false
customAttributes
object
Search for users with these custom attributes. Custom attributes filter should have string keys (attribute names that were configured for the user). Values should be either strings, ints or bools or lists (arrays) of strings, ints or bools for multiple matches.
statuses
array<string>
If not empty then users must be in one of those statuses
emails
array<string>
phones
array<string>
ssoAppIds
array<string>
sort
array<object>
loginIds
array<string>
Status code | Description |
---|---|
200 | OK |