Skip to main content
GET
Read users

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Query Parameters

hubId
string

Only users assigned to this hub. Repeat as hubId[] for several hubs. With include=extendedData, also picks that hub's extension record. Example: 65c1f68ea735b522d370ea25

roleId
string

Only users with this role. Example: 68db98a7094228379a0d74d4

teamId
string

Only users in this team. Example: 68dc01a7094228379a0d7500

userId
string

Only the user with this _id. Example: 68db98a7094228379a0d74d6

status
enum<string>

active returns active users; inactive returns every user who is not active.

Available options:
active,
inactive
q
string

Search text, matched anywhere in the user name or email. Example: rina

limit
integer

Maximum number of users returned. Example: 50

fields
string

Comma-separated list of user fields to return. Unknown fields are dropped; cloudAuthenticatorEnabled is always returned. Example: name,email,hubId

scopeTeam
boolean

Set false to skip the team scope described above. Default: true

include
enum<string>

Pass extendedData to add each user's extendedData: the record of your organization's user extension data type (the custom fields added under Extended data). Off by default, and only the exact value extendedData turns it on. When your organization has no user extension, the field is left out. When it has one but this user has no record yet, the field is null. When the extension is kept per hub, extendedData is an array with one record per hub. Add hubId to get only that hub's record as an object, or null when it has none. Example: extendedData

Available options:
extendedData

Response

Success

The response is of type object.