List Users

Lists all users belonging to the authenticated organization. You can optionally filter the results by account group or account ID.

GET/organizations/users

Lists users. Optionally filter by account_group_id or account_id.

Query Parameters

account_group_idstring

Filter by account group.

account_idstring

Filter by account.

pageinteger

Page number.

page_sizeinteger

Page size.

Response

OK

dataobject[]
Show data properties
idstring<uuid>
emailstring
first_namestring
last_namestring
account_permissionsobject[]
Show account_permissions properties
account_idstring<uuid>
role_idstring
account_group_permissionsobject[]
Show account_group_permissions properties
account_group_idstring<uuid>
role_idstring
created_atstring<date-time>
updated_atstring<date-time>
paginationobject
Show pagination properties
pageinteger
page_sizeinteger
total_itemsinteger
total_pagesinteger
has_nextboolean
has_previousboolean
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/organizations/users?account_group_id=<account_group_id>&account_id=<account_id>&page=<page>&page_size=<page_size>" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>"
Response
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "email": "string",
      "first_name": "string",
      "last_name": "string",
      "account_permissions": [
        {
          "account_id": "00000000-0000-0000-0000-000000000000",
          "role_id": "string"
        }
      ],
      "account_group_permissions": [
        {
          "account_group_id": "00000000-0000-0000-0000-000000000000",
          "role_id": "string"
        }
      ],
      "created_at": "1970-01-01T00:00:00.000Z",
      "updated_at": "1970-01-01T00:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 0,
    "page_size": 0,
    "total_items": 0,
    "total_pages": 0,
    "has_next": true,
    "has_previous": true
  }
}