Skip to main content

List users

GET 

/users

Returns directory users known to the server (synchronized from the configured domains).

Each user carries an access.role only on the single-user endpoint; the list returns the default field set (distinguishedName, displayName, cn, sn, sAMAccountName, objectSid, domain_fqdn, domain_netbios) plus the object id.

Any other user field can be used as an equality filter in the query string. Unknown or non-selectable fields return 400. With advanced, the filter operators of the advanced query syntax apply and select can choose the returned fields.

The response is a JSON array by default. With inlinePageInfo the body is wrapped in a paging envelope. Paging is also reported in X-Pagination-* headers and the Link header.

Required role: user, admin or superadmin (any authenticated user).

Request​

Responses​

A page of users.

Response Headers
    X-Pagination-Count

    Number of records in this page.

    X-Pagination-Max-Count

    Page size used for the request (limit).

    X-Pagination-Page

    Current page number.

    X-Pagination-Pages

    Total number of pages.

    X-Pagination-Total

    Total number of records matching the query.

    Link

    RFC 8288 links with rel values first, last, and, when they exist, prev and next.