Skip to main content

User API

The User object is Trivore ID's central resource — every namespace, group, role, and authorisation ultimately relates to it. This page gives an overview of the API's core operations and points to where each related area is documented in more detail. The full, authoritative list of endpoints is always the /apidoc/management/#/Users reference on your own instance.

See User fields for details on individual fields in the User document, and User API examples for example requests.

Core operations

The base /api/rest/v1/user and /api/rest/v1/user/{userId} endpoints cover standard CRUD, plus a couple of variations:

OperationEndpointNotes
List usersGET /userLists users from all namespaces the caller can access. Supports filtering and sorting by sortBy/sortOrder.
Search usersPOST /user/searchAn alternative to listing: filter parameters are given in the request body instead of a query string. Returns at most 500 users per call.
Create userPOST /userCreated in the caller's own namespace, unless another accessible namespace is specified. Minimum required fields depend on namespace configuration.
Get userGET /user/{userId}
Modify userPUT /user/{userId}Given fields overwrite existing values; fields left out of the request body are unchanged.
Partially update userPATCH /user/{userId}Applies a JSON Patch, for a limited set of fields. Some fields require additional permissions beyond the base modify permission — see the endpoint's own documentation for the full list.
Delete userDELETE /user/{userId}

Most operations require the caller — a signed-in user or a Management API Client — to have access to the target user's namespace, plus a matching permission (ACCOUNT_FIND, ACCOUNT_NEW, ACCOUNT_EDIT, or ACCOUNT_REMOVE). Some user information may be hidden from the response unless the caller has additional, more specific permissions.

The User document itself only covers identity and core account data. A number of related, more specialized APIs act on or alongside a user account: