This API Will return users for an organization, based on the search criteria provided. If you want list of all users
of an organization, you can refer Get All Users of
organization
endpoint.
Headers
1
x-iam-orgid
Specify the Organization Id here.
Example: 281185056586736799
Query Parameters
1
page (optional, number)
Specifies the page number to retrieve. Use this parameter to paginate through large sets of organizations. Defaults to 0 if not provided.
Example: ?page=2
2
pageSize (required, number)
Specifies the number of organizations to return per page. This helps to control the size of the response data.
pageSize must not be greater than 100.
Example: ?pageSize=10
Search Parameters
The following parameters are supported to search users:1
name
To search the users in the organization based on the name, you need to pass the name in the request body.
This search parameter allows partial text matching.
2
To search the users in the organization based on the mail, you need to pass the email of the user
in the request body. This search parameter allows partial text matching.
3
userId
To search the users in the organization based on the user’s ID, you need to pass the user id in the request body.
4
role
To search the users in the organization based on the user assigned role, you need to pass the role
in the request body.
The search operation is exclusive and applies AND logic between parameters.
This means that if multiple parameters are provided
(e.g., name, email, and role), only users that match all specified
criteria will be returned.
- metadata.total: The total number of users available in the organization.
- users: A list of users objects, with details of the user returned based on the search criteria