Skip to main content

Managing users via the API

List, create, modify, suspend and unsuspend users with Web API v3

Written by Marie Xhauflair

The Users endpoints allow listing, creation and modification of users.

Part of Web API v3 for user management. You need a token with the v3:users:read or v3:users:write scope, see Authenticating with the Web API v3.


Listing users

List users using the /api/v3/public/users/ GET endpoint.

You can use a number of filters to find users with a specific email or employee_id, and filter on contract_start_date, first_login or registered_at ranges.


User fields

Field

Description

uuid

Users are uniquely identified by their uuid, and all other endpoints in API v3 that refer to users do so through this identifier. Read-only.

email

The email address of a user. Should be unique if they log in with a username and password.

first_name and last_name

Used to refer to a user on the platform.

contract_start_date and contract_end_date

Can be used in automations to automatically make content available in an onboarding programme, or automatically suspend users when their contracts end. See 02 An introduction to automations.

employee_id

A customer-specific (unique) identifier, which can be used to disambiguate users.

language

The language for a user in ISO 639-1 format. Only languages currently enabled on the platform are valid options. Please contact support if you need to know which languages are currently enabled.

first_login

The date-time when the user first logged in. Read-only.

registered_at

The date-time when the user used their RegistrationToken to set up their password. Stays null when the user uses SSO to log in.

is_suspended

Controls whether the user can log in. A suspended user does not count toward the licenses, but is not able to log in either. See deleting and suspending users below.

is_pending

Automations are not applied to pending users. Content is not yet made available to them and it is not possible to send them notifications. A user is set to false when they log in for the first time. You can set this to false yourself so a user will receive notifications from the platform.

saml_username

The username used with a saml2 SSO.

jwt_username

The username used with a JWT integration.

openid_username

The username used with an OpenID integration.

🚧 Be careful

It is not possible to set is_pending to true. Instead, you may want to suspend a user.


Creating users

With a POST request to /api/v3/public/users/ you can add new users.

If you require users to log in with email and password on our platform, and optionally send a registration email through the platform, a separate call to our activation token endpoint needs to be made. See Activation tokens and invitation emails.


Modifying users

With a PUT or PATCH request to /api/v3/public/users/<uuid>/ you can modify existing users.

The PUT requires all writable fields to be included, while the PATCH only updates provided fields.


Deleting and suspending users

A suspended user can not log in to the platform.

It is not possible to delete a user directly. Instead, the user should be suspended by setting is_suspended to true.

By default, the user is then permanently deleted from the platform after 6 months.

👀 Good to know

This suspend period before deletion can be customised per platform. Email service@tinqwise.com if you want a different period for your platform.


Unsuspending users

If a user is suspended and you want to reactivate them, then the user should be unsuspended by setting is_suspended to false. This is only possible within the suspend period, before the user is permanently deleted from the platform.

It is not necessary to send a new activation token to the user after unsuspending them. The user can log in with their old password, or with SSO.

👀 Good to know

Users will receive an automatic "welcome back" email after they are unsuspended. This behaviour can be configured through the Unsuspend Email feature.

Did this answer your question?