Find Users by Email

Returns the user(s) within the authenticated organization whose email address matches the given value. Use this endpoint to resolve a user record when you have an email address but not the WHITELABEL user ID.

Organization scope and empty results

Results are always scoped to the calling organization. If the same email exists in another organization it will not appear here. When no user in the organization matches the address, the response contains an empty data array rather than an error.

GET/organizations/users

Returns the user(s) whose email matches the given address, scoped to the authenticated organization. An email address may belong to users in multiple organizations; only matches within the calling organization are returned. When no user carries that email the response contains an empty data array — it is not an error.

Query Parameters

emailstringrequired

Email address to search for. Must be an exact, case-insensitive match.

Response

OK — zero or more users matching the email address.

dataobject[]

List of users whose email matches the requested address within the calling organization. Empty when no match is found.

Show data properties
idstring<uuid>

WHITELABEL-generated unique identifier of the user.

emailstring

Email address of the user.

first_namestring

User’s first name.

last_namestring

User’s last name.

account_permissionsobject[]

List of account-level permissions assigned to this user.

Show account_permissions properties
account_idstring<uuid>

Account the permission applies to.

role_idstring

Role assigned to the user on this account.

account_group_permissionsobject[]

List of account-group-level permissions assigned to this user.

Show account_group_permissions properties
account_group_idstring<uuid>

Account group the permission applies to.

role_idstring

Role assigned to the user on this account group.

created_atstring<date-time>

ISO 8601 timestamp of when the user was created.

updated_atstring<date-time>

ISO 8601 timestamp of the last update.

paginationobject
Show pagination properties
pageinteger
page_sizeinteger
total_itemsinteger
total_pagesinteger
has_nextboolean
has_previousboolean

Bad Request — email query parameter is missing or not a valid email address.

Unauthorized — invalid or missing API credentials.

Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/organizations/users?email=<email>" \
  -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
  }
}