Search for users
This endpoint lets you search for users using filters
Query parameters
Filter by user email. Value must be a valid email address. Case-insensitive exact match.
Filter by organization ID. Only PROVIDER users can use this filter. If you are not a PROVIDER, this will default to the ID of your organization.
Fuzzy search across the full name and email of users. Case-insensitive.
User status in the application
If true, return only disabled users. If false, return only active users.
Filter users based on whether they have at least one assigned business (true) or no assigned businesses (false).
Filter users who do not have the specified permission.
For available permissions and their names, use GET /api/v2/permissions to retrieve the full list of available permissions for your organization.
Filter users who have the specified permission.
For available permissions and their names, use GET /api/v2/permissions to retrieve the full list of available permissions for your organization.
Filter users by last name (exact substring match, case-sensitive).
User role in the application
- If true, response includes business_ids; a list of businesses the user has access to.
- If false, response does not include business_ids.
⚠️ Note: The business_ids list is only populated for users with the BUSINESS_MANAGER role.
Filter by users having access to the business with the provided id.
Page number. Starts at 1. Any value lower than 1 will be considered as 1. For the number of items per page, see the per_page query parameter.
Number of items to return per page. Currently limited to 100.
Order result by given attribute. Reverse order can as well be obtained by using a - (minus sign) before the attribute name, e.g. order_by=-name
Response
OK
Example response
{
"page": 1,
"max_page": 10,
"count": 287,
"users": [
{
"id": "5309c3a237bbc544d8e26737",
"org_id": 42,
"first_name": "Perceval",
"last_name": "de Galles",
"email": "perceval@kaamelott.com",
"lang": "fr",
"business_ids": [
"5409c35a97bbc544d8e26737"
],
"accesses": [
[
1,
2
],
[
1,
3
]
],
"role": "BUSINESS_MANAGER",
"provider": "partoo",
"status": "active",
"created_at": 1615299414,
"custom_role": "my_custom_role"
}
]
}