Appearance
Users and roles
Listing users
Requires: security.manage.access permission.
bash
GET /v1/security/auth/usersReturns every user in the caller's tenant with their profile, roles and status. Users are scoped to the caller's tenant — a PlatformAdmin on tenant A cannot see tenant B's users.
Creating a user
bash
curl -X POST http://localhost:3001/v1/security/auth/users \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_JWT" \
-d '{
"username": "jane.smith",
"email": "jane@acme.com",
"password": "a-strong-password",
"firstName": "Jane",
"lastName": "Smith",
"roles": ["Manager"]
}'Requires: security.manage.access permission. Passwords must be at least 8 characters. The password is bcrypt-hashed before storage — no plaintext password is ever persisted or returned.
User fields
| Field | Required | Description |
|---|---|---|
username | Yes | Unique within the tenant |
email | Yes | Used for notifications and as a login identifier |
firstName | Yes | Display name |
lastName | Yes | Display name |
password | Yes | Minimum 8 characters, bcrypt-hashed |
roles | Yes | Array of role names |
department | No | Organisational department |
title | No | Job title |
Updating a user
Profile update (admin)
bash
PUT /v1/security/auth/users/:userIdUpdates the user's profile fields (firstName, lastName, email, department, title). Requires security.manage.access.
Role assignment
bash
PATCH /v1/security/auth/users/:userId/rolesReplaces the user's role set. Requires security.manage.access.
json
{ "roles": ["Manager", "Architect"] }A user can hold multiple roles. Permissions are the union of all assigned roles' permissions.
Status change
bash
PATCH /v1/security/auth/users/:userId/statusChanges the user's status. Requires security.manage.access.
| Status | Meaning |
|---|---|
active | Can sign in and use the platform |
suspended | Cannot sign in; data preserved |
deprovisioned | Permanently disabled; kept for audit trail |
pending | Awaiting activation |
Admin password reset
bash
POST /v1/security/auth/users/:userId/reset-passwordSets a new password for the user. Requires security.manage.access. The user's existing sessions are not automatically revoked — use the session revocation endpoint if needed.
Self-service operations
Authenticated users can manage their own profile without admin permissions:
bash
# View own profile and permissions
GET /v1/security/auth/me
# Update own profile (firstName, lastName, department, title only)
PATCH /v1/security/auth/me
# Change own password (requires current password)
POST /v1/security/auth/change-passwordThe self-service profile update is limited to non-sensitive fields — a user cannot change their own email, username or roles.
Roles
IDVIZE ships with six roles. Each role is a fixed set of permissions — there is no custom role builder today.
| Role | Intended for | Key permissions |
|---|---|---|
| PlatformAdmin | Platform operator | Everything: tenant management, user management, all modules, commercial configuration, unit economics |
| Manager | IAM programme manager | View and manage controls, baselines, applications, identities, accounts; approve execution; view cost and value |
| Architect | IAM architect | View controls, baselines, applications; manage automation policy; view integrations |
| BusinessAnalyst | Governance analyst | View controls, applications, documents, maturity; no execution or configuration |
| Engineer | IAM engineer | View and configure integrations, run ingestion, view controls and applications; limited execution |
| Developer | Integration developer | View integrations and applications; no approval or execution authority |
Viewing the permission matrix
bash
# List all roles and their permissions
GET /v1/security/auth/roles
# Full RBAC matrix (every role × every permission)
GET /v1/security/auth/matrixKey permissions
There are 24 discrete permissions. Each role holds a subset:
| Permission | Controls |
|---|---|
controls.evaluate | Trigger a manual assessment sweep |
controls.baseline.manage | Edit the control baseline (what is required) |
agents.execute.approve | Approve an execution plan |
agents.admin | Create, cancel and manage execution sessions |
commercial.grants.manage | Change commercial grants and packages |
commercial.unit-economics.view | View cost-to-serve data (PlatformAdmin only) |
sod.manage | Create and manage separation-of-duties policies |
sod.view | View SoD policies and findings |
accounts.correlate | Accept or reject account–identity correlations, manage ownership |
accounts.view | View account inventory and investigations |
security.manage.access | User CRUD, role assignment, session revocation |
security.view.audit | View audit logs and permission matrix |
tenants.manage | Tenant CRUD |
tenants.settings.update | Update tenant settings |
Authentication
Users authenticate by exchanging credentials for a JWT:
bash
curl -X POST http://localhost:3001/v1/security/auth/token \
-H "Content-Type: application/json" \
-d '{"email": "jane@acme.com", "password": "a-strong-password"}'The JWT is valid for 8 hours. There are no refresh tokens — after expiry, the user signs in again.
Session management
bash
# Logout (invalidates the current token)
POST /v1/security/auth/logout
# Force-revoke another user's session (requires security.manage.access)
POST /v1/security/auth/revokeRevoked tokens are tracked in the revoked_sessions table with write-through to an in-memory cache, so revocation takes effect immediately without waiting for token expiry.
Separation of duties
A self-approval guard prevents the same person from both requesting and approving an execution plan. If person A creates a session, person A cannot approve it — a different user with agents.execute.approve must do so.
Known limitation
Only two roles hold the approval permission (PlatformAdmin and Manager). Two people with the same role can still collude. A richer role model with separated request and approval roles is planned (SD-0038).