v1

latestOpenAPI 3.0.12026-07-13130168404.3 KB
Search

Search users

Searches for users using user-specific queries from the Confluence Query Language (CQL).

Note that CQL input queries submitted through the /wiki/rest/api/search/user endpoint only support user-specific fields like user, user.fullname, user.accountid, and user.userkey.

Note that some user fields may be set to null depending on the user's privacy settings. These are: email, profilePicture, displayName, and timeZone.

get/wiki/rest/api/search/user

Query parameters

cqlstring required

The CQL query to be used for the search. See Advanced Searching using CQL for instructions on how to build a CQL query.

Example queries: cql=type=user will return up to 10k users cql=user="1234" will return user with accountId "1234" You can also use IN, NOT IN, != operators cql=user IN ("12", "34") will return users with accountids "12" and "34" cql=user.fullname~jo will return users with nickname/full name starting with "jo" cql=user.accountid="123" will return user with accountId "123"

startinteger

The starting index of the returned users.

limitinteger

The maximum number of user objects to return per page. Note, this may be restricted by fixed system limits.

expandstring[]

A multi-value parameter indicating which properties of the user to expand.

  • operations returns the operations for the user, which are used when setting permissions.
  • personalSpace returns the personal space of the user.
sitePermissionTypeFilter'all' | 'externalCollaborator' | 'none'

Filters users by permission type. Use none to default to licensed users, externalCollaborator for external/guest users, and all to include all permission types.

Response

Returned if the requested results are returned.

startinteger required
limitinteger required
sizeinteger required
totalSizeinteger required
cqlQuerystring required
searchDurationinteger required
archivedResultCountinteger
_linksGenericLinks required