- What is TestInvite?
- Build Your First Test
- Run Your First Assessment
- Taking the Assessment
- Viewing the Results
- Question Bank Overview
- Common Question Features
- Scoring
- Question Types
- Question Authoring
- Browsing Questions
- Content Blocks
- Media Library
- Metadata Rules & Schema
- Tasks Overview
- Creating a Task
- Task Dashboard
- Steps
- Task Settings
- Candidates
- Test Sessions
- Sent Mails
- Proctoring
- Analytics
- Data Operations
- Analytics Overview
- Test Analytics
- Question Analytics
- Per-Question Analytics
- Results Explorer
- Segment Analysis
Users
List, fetch, search, expand, create and update Users through the REST API: teammates and learners across your whole organization, not scoped to a single task.
Users are org-wide: unlike Candidates, they aren't scoped to a single task. Reading users requires the List users permission; creating and updating them requires Write users. See REST API Reference for the shared mode, pagination, and List/Fetch/Search conventions used below.
Basic vs. Detailed
- basic:
userId, createdAt, username, fullname, email - detailed: adds
organizationId, folder, tags, labels, group, favorite, active, roles[].rolesis any combination of Manager, Test Author, Task Operator, Custom Access User, Question Curator, External Question Author.
Passwords are never returned.
List, Fetch, Search
GET /users: query paramsmode, limit, page, username(case-insensitive partial match).GET /users/:id: query parammode.POST /users/filter: query paramsmode, limit, page; body{ folder?, group?, labels?, favorite?, type?, username?, active? }, all AND-combined.typeis"teammate"or"regular"(learner);activeis whether the user can currently log in.
Expand
POST /users/:id/expand: body { expand: ["activeAfter", "activeBefore"] }. Returns the detailed user plus activeAfter/activeBefore, the window during which this user can sign in, if one is set.
Create
POST /users creates one user and returns it in the detailed shape.
| Field | Required | Notes |
|---|---|---|
username | Yes | Unique within your organization |
roles | Yes | At least one of MANAGER, EDITOR (Test Author), OPERATOR (Task Operator), JOKER (Custom Access User), QUESTIONBANKSUPERVISOR (Question Curator), QUESTIONBANKSUBMITTER (External Question Author), or USER for a learner. USER can't be combined with other roles. |
password | No | Sets the user's password; it counts as set by an admin |
sendPasswordSetupEmail | No | true emails the user a link to choose their own password; needs email, and can't be sent together with password |
fullname, email | No | email is required if your organization requires an email for every user, and must be unique if it enforces unique emails |
folder, group, labels, tags, favorite | No | labels is an array of strings; tags an object of tag name to value |
How the user gets a password: send password, or sendPasswordSetupEmail: true, or neither. With neither, the user has no password and can't sign in until an admin sets one or sends a password link from the Users page. A setup link works once and is valid for 7 days.
POST /users
{
"username": "martinbrown",
"fullname": "Martin Brown",
"email": "martinbrown@example.com",
"roles": ["USER"],
"folder": "general",
"tags": { "Department": "Sales" },
"sendPasswordSetupEmail": true
}When you asked for a setup email, the response also has passwordSetupEmail: "sent", or "failed" if the email couldn't be sent. A failed email does not undo the user: it exists without a password, and you can send a link from the Users page. Users whose email belongs to a single sign-on domain where passwords are not allowed can't be given a password or a setup email.
Update
PATCH /users/:id changes only the fields you send and returns the updated user in the detailed shape.
fullname,email,folder,group,favorite,activelabels:{ add?: string[], remove?: string[] }, applied to the user's current labels
Usernames, roles and passwords can't be changed through the API.
PATCH /users/AbC123
{
"group": "group2",
"labels": { "add": ["2026"], "remove": ["trial"] },
"active": false
}Errors
| Status | When |
|---|---|
| 400 | Invalid body; no role, or USER combined with other roles; password and sendPasswordSetupEmail together; a setup email without email; a password or setup email for a single sign-on user; an email missing when your organization requires one |
| 403 | Creating the user would go over the number of teammates or learners your organization can have |
| 404 | Update: no user with that ID in your organization |
| 409 | The username or email is already used by another user |
| 501 | Your organization's users haven't been moved to the current user list yet; contact us |
See Errors for the shared error format.