Users — Enrollments

Users

An enrollment is a user's registration for a factor, for example their password, email address for One-Time Passwords, authenticator app or account with an identity provider. Users authenticate with their enrollments, and each enrollment adds the factor's score to the session. This page covers enrollments from a user's perspective. See Factors for how enrollments work per factor.

  1. 1A pending enrollment is deleted if the user doesn't validate it before this time, here the new phone's authenticator app
  2. 2For external users admins can only disable or delete enrollments, e.g. the authenticator app on a lost phone - not change them

Create

Users get enrollments in following ways:

  • Signup - Users enroll in the factors they choose in the Login UI (or your own UI through the Authentication API) when they sign up.
  • Account UI - Users can add enrollments later on in the Account UI under Factors at https://{tenant_id}.account.quasr.io/factors, or through the createEnrollment operation of the Management API with an account scope.
  • Admin - Admins can enroll internal users (and applications) in the Admin UI with Create in the user's Factors tab (the Create Factor dialog), or through the createEnrollment operation of the Management API or the create-enrollment tool of the Agent API. Other users enroll themselves. Only admins can create enrollments for restricted factors.
  • Sources - When a claim is created for an attribute with a bidirectional source, the user is automatically enrolled in the source's factor, e.g. an email address added as attribute becomes an OTP enrollment.

A new enrollment is PENDING until it's validated, e.g. when the user enters the One-Time Password sent to their email address, after which it becomes ENABLED. A pending enrollment that isn't validated in time expires (expires_at) and is deleted.

  1. 1Leave it empty to have a password generated: it's shown once after creating, so pass it on to the user through a channel you trust

View

  • Admin UI - The enrollments of a user are shown in the user's Factors tab at https://{tenant_id}.admin.quasr.io/accounts/{account_id}/factors.
  • Account UI - Users see their own enrollments under Factors, and in an enrollment's Attributes tab the claims it's linked to.
  • Management API - The getEnrollment and listEnrollments operations can be used, e.g. with filter { "account": { "eq": "{account_id}" } }. Admins can retrieve the enrollments of all users, accounts (with an account scope) only their own.
  • Agent API - The get-enrollment and list-enrollments tools can be used.
  1. 1For a pending enrollment this starts the validation, e.g. entering a code from the new authenticator app

Properties

  • ID (id: string) - The ID of the enrollment.
  • Account (account: string) - The ID of the user the enrollment belongs to.
  • Factor (factor: string) - The ID of the factor, with its subtype (subtype: string), e.g. otp:email.
  • Label (label: string) - Textual label shown in the Login UI and Account UI.
  • Score (score: number) - The score the enrollment adds to the session, taken from the factor.
  • Status (status: string) - One of following:
    • PENDING - The enrollment still needs to be validated.
    • ENABLED - The enrollment can be used to authenticate.
    • DISABLED - The enrollment can't be used, but can be enabled again.
    • LOCKED - The enrollment is temporarily locked after too many failed attempts, or because its factor or user was disabled or locked. See Locking.
  • Attempts (attempts: number) - The number of consecutive failed or pending attempts, which locks the enrollment when it reaches the maximum.
  • Output (output: string) - Output of the factor when creating or updating the enrollment, e.g. the authorization URL to complete an identity provider enrollment.
  • Expires At (expires_at: string) - When a pending enrollment will be deleted if it isn't validated.
  • Configuration (config: object) - The factor configuration that applies to the enrollment, e.g. whether it's internal or restricted, its maximum attempts and, for key-based factors, its public key.

Manage

Enrollments can be updated with the updateEnrollment operation (update-enrollment tool) and deleted with the deleteEnrollment operation (delete-enrollment tool), or in the Admin UI and Account UI.

  • Users can update and delete their own enrollments, except for those of restricted factors.
  • Admins can update and delete the enrollments of internal users. For other users they can only disable (set the status to DISABLED) or delete enrollments.
  • Updating an enrollment only changes its label and status. Its value, such as a password, key or token, can't be changed.
  • Only enabled and disabled enrollments can be updated by admins and deleted. Pending enrollments can only be updated by the user (to complete them), and locked enrollments can't be updated or deleted.
  • The status can only be set to ENABLED or DISABLED.

Common tasks are:

  • Reset a password - Users create a new password enrollment themselves in the Account UI after logging in with another factor, and delete the old one. For internal users admins can do so (leave the value empty to have one generated). See Password.
  • Lost device - Disable or delete the enrollment of a lost authenticator app or phone, so it can't be used anymore, and let the user enroll a new one.
  • Locked out - An enrollment locked after too many failed attempts can't be unlocked manually, not even by an admin. It unlocks automatically after 5 minutes. See Locking.
  • Block a user - To stop a user from signing in with any enrollment, disable or lock the user instead. See Locking.

Admins can search the enrollments of a factor by their value, for example to find the user with a given username, email address or phone number. Searching enrollments requires an admin scope (https://api.quasr.io/scopes/admin, .../scopes/admin/enrollments or .../scopes/admin/enrollments/search), see Authorization. Following applies:

  • Only exact matches of the full value are returned. Since every enrollment is indexed by a hash of its value, the search is fast and values don't need to be decrypted.
  • The comparison is case-insensitive, unless the factor is case sensitive.
  • For a unique factor at most 1 enrollment is returned.
  • Enrollments of password, secret, personal token (JWT) and authenticator app (TOTP) factors can't be searched, as their value doesn't identify the user.

The parameters are:

  • Factor (factor: string) - The ID of the factor to search (required).
  • Value (value: string) - The full value to search for, e.g. the email address (required).
  • Filter (filter: object) - Additional conditions on the enrollments, e.g. { "status": { "eq": "ENABLED" } }.
  • Limit (limit: number) - The maximum number of enrollments to return, 25 by default and at most 100.
  • Next Token (nextToken: string) - The nextToken of the previous response, to get the next page.

The enrollments are returned with the properties above, and can be used to look up the user (account). Enrollments can be searched in following ways:

  • Admin UI - In the factor's Search tab at https://{tenant_id}.admin.quasr.io/factors/{factor_id}/enrollments, with the Filter button.
  • Management API - With the searchEnrollments operation of the Management API, as in following example.
  • Agent API - With the search-enrollments tool of the Agent API.
  1. 1The user the value belongs to - click it to open the user
query {    searchEnrollments(factor: "{factor_id}", value: "jane@example.com", limit: 1) {        items {            id            account            factor            status        }        nextToken    }}
2026.11.22 | © Copyright 2026 Quasr BV