Skip to content
UneeqUneeqUneeq Docs

List organization users

GET
/external/v1/organization/{organizationID}/users/page/{page}
curl --request GET \
--url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/users/page/1?limit=25" \
--header "Authorization: Bearer $UNEEQ_API_KEY"

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.

organizationID
required
string

ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.

Example

org_HYPCX67vaupjhdTn
page
required
integer
>= 1 <= 100000

1-based page number.

Example

1
limit
required
integer
>= 1 <= 100

Page size. Required; a missing or non-numeric value is rejected with 400.

Example

25
search
string

Case-insensitive substring match on name or email, or an exact match on user ID. Omit or leave empty to list everyone.

user_roles
string

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.

user_status
string

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.

One page of users.

Media typeapplication/json
object
users
required

The users on this page. Empty when the page is past the end.

Array<object>

A member of the organization, as returned by the organization user list.

object
id
required

User ID.

string format: uuid
email
required

Email address.

string
roles
required

The user’s role IDs in this organization (for example ORG_ADMIN, USER).

Array<string>
Allowed values: UNEEQ_ADMIN ORG_ADMIN TEAM_ADMIN AUTHOR MANAGER USER
organization_roles
required

Always null in the user list.

object | null
status
required

Membership status. expired means the invitation was not accepted in time.

string
Allowed values: active inactive invited expired
name
required

Display name. Empty string when no name is known yet (for example, before first sign-in).

string
records
required

Total number of users matching the filters, before paging.

integer

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.

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

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.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}

The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}
Retry-After
integer
>= 1

Seconds to wait before retrying.

The user list could not be read (“unable to get a users list for the requested organization”).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}