Skip to main content
Search users

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Query Parameters

photoSize
enum<string>
default:nano

Rendition of the profile pictures to point at in the answer - pick the smallest one the place they are shown can live with.

Available options:
nano,
small,
medium,
big
Example:

"nano"

Body

application/json
activeSessions
boolean
default:false

Whether each account is answered with the sessions it currently has open - where it is signed in, and since when.

Example:

false

aggregations
object

Elasticsearch aggregations, passed through as sent and answered alongside the results. Refused are the kinds that would reach past what the caller may see or into what nobody may see: a global aggregation, a top_hits or scripted one, and any that targets one of the account's secrets.

format
enum<string>
default:minimal

How much of each account comes back: the short form that fills a picker, or everything the account holds. Ask for the full form only where it is really needed - it is a great deal more data per account.

Available options:
minimal,
full
Example:

"minimal"

includeContacts
boolean
default:false

Whether contacts from the caller's address book are searched alongside the accounts, so that a recipient picker can offer both. Read recordType on each result to tell one from the other.

Example:

false

includeGroups
boolean
default:false

Whether groups are searched alongside the accounts, so that one request can offer both a person and a whole group as a recipient.

Example:

false

lastActivity
boolean
default:false

Whether each account is answered with the moment it was last used. It is worked out from the sessions, which costs an extra lookup, so ask for it only where it is shown.

Example:

false

rights
string[]

Narrows the answer to accounts that hold every one of these rights - the way to find, say, everyone who may administer documents. A right that no group grants at all makes the request fail rather than answer nothing. Contacts and groups searched alongside the accounts are not weighed against it.

Example:
userQuery
object

Search query the accounts are matched against. Omit it to page through everything you can reach. A query cannot reach the secrets kept on an account - the password, the one-time-password seed, recovery codes, provider tokens and identity payloads are refused as query, sort and aggregation fields alike.

Response

Returns the matching accounts, the total number of matches and any aggregations asked for.

aggregations
object

Results of the aggregations the search carried, answered as the search engine produced them. Absent where the search asked for none.

results
object[]

What the search matched, limited to the requested page. Accounts, contacts and groups can all appear here, each in the shape its kind has - and in the short or the full form, depending on the format the search asked for. Read recordType to tell them apart.

total
integer

Number of results matching the query, regardless of paging.

Example:

42