List organization users
curl --request GET \ --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/users/page/1?limit=25" \ --header "Authorization: Bearer $UNEEQ_API_KEY"const url = `${process.env.UNEEQ_API_URL}/external/v1/organization/${process.env.UNEEQ_ORG_ID}/users/page/1?limit=25`;const response = await fetch(url, { method: 'GET', headers: { Authorization: `Bearer ${process.env.UNEEQ_API_KEY}`, },});console.log(response.status, await response.text());Returns one page of the organization’s members, sorted by name (case-insensitive, people without a name last), then by email. Only members who hold at least one role in the organization are listed.
records is the total number of members matching the filters, before paging, so it can be used to work
out the number of pages. Asking for a page past the end returns an empty users array with the true
records total.
A member whose invitation has expired is reported with status expired.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.
Example
org_HYPCX67vaupjhdTn1-based page number.
Example
1Query Parameters
Section titled “Query Parameters”Page size. Required; a missing or non-numeric value is rejected with 400.
Example
25Case-insensitive substring match on name or email, or an exact match on user ID. Omit or leave empty to list everyone.
Comma-separated role IDs (for example ORG_ADMIN,MANAGER). Only members holding at least one of these
roles in the organization are returned. Unknown values match nothing. Values are not trimmed, so do not put spaces after the commas.
Comma-separated statuses: active, inactive, invited, expired. invited matches only
invitations that have not expired. Unknown values match nothing. Values are not trimmed, so do not put spaces after the commas.
Responses
Section titled “Responses”One page of users.
object
The users on this page. Empty when the page is past the end.
A member of the organization, as returned by the organization user list.
object
User ID.
Email address.
The user’s role IDs in this organization (for example ORG_ADMIN, USER).
Always null in the user list.
Membership status. expired means the invitation was not accepted in time.
Display name. Empty string when no name is known yet (for example, before first sign-in).
Total number of users matching the filters, before paging.
Example
{ "users": [ { "roles": [ "UNEEQ_ADMIN" ], "status": "active" } ]}page is not an integer between 1 and 100000, or limit is missing or not an integer between 1 and
100. Message “invalid request”, no error_code.
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The Authorization header is missing, or the API key is not valid for this organization. A key check that fails on the server is also reported as 401.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}Headers
Section titled “Headers”Seconds to wait before retrying.
The user list could not be read (“unable to get a users list for the requested organization”).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}
