List users
Changed onThis endpoint lists all users.
Results can be narrowed with the filter query parameters below. Values within a single filter are OR-ed, and separate filters are AND-ed together.
Filters that accept multiple values take them either as a comma-separated list or as a repeated parameter: ?status[]=ACTIVE,INVITED and ?status[]=ACTIVE&status[]=INVITED are equivalent.
The legacy singular email and remote_display_id parameters perform an exact lookup that returns at most one user, and cannot be combined with the filters above.
Request
- Base URLhttps://api.brex.com
- Auth
- OAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesusers.readonly
- or OAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesusers
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Currently only support filtering by a single email or a single remote_display_id.
Currently only support filtering by a single email or a single remote_display_id.
Fuzzy, case-insensitive match against the user's first name, last name and email.
Filter by email address. Accepts several emails, e.g. ?email[]=a@example.com,b@example.com.
Filter by user status. Accepts several statuses, e.g. ?status[]=ACTIVE,INVITED. By default, deleted and archived users are excluded.
Filter by the user_id of the manager. Accepts a list of managers.
Filter by department_id. Accepts a list of departments.
Filter by location_id. Accepts a list of locations.
Filter by title_id. Accepts a list of titles.
Filter by cost_center_id. Accepts a list of cost centers.
Filter by legal_entity_id. Accepts a list of legal entities.
Load custom field values for the users.
Filter by custom field value, given as key:option_id. Accepts a list of custom fields. Values within a single key are OR-ed, and separate keys are AND-ed together.
Response
listUsers 200 response
Example response
{
"items": [
{
"custom_fields": [
{
"value": {
"data": {
"amount": 700,
"currency": "USD"
}
}
}
]
}
]
}Changes
- info
the security scope
userswas removed from the endpoint's security schemeOAuth2
- info
- warning
deleted the
queryrequest parameterexpand[] - info
added the new optional
queryrequest parametercost_center_id[] - info
added the new optional
queryrequest parametercustom_field[] - info
added the new optional
queryrequest parameterdepartment_id[] - info
added the new optional
queryrequest parameteremail[] - info
added the new optional
queryrequest parameterlegal_entity_id[] - info
added the new optional
queryrequest parameterload_custom_fields - info
added the new optional
queryrequest parameterlocation_id[] - info
added the new optional
queryrequest parametermanager_id[] - info
added the new optional
queryrequest parametername - info
added the new optional
queryrequest parameterstatus[] - info
added the new optional
queryrequest parametertitle_id[] - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
removed the
CLOSEDenum value from the//////response property for the response status - info
removed the
DELETEDenum value from the//////response property for the response status
- warning