Users and Roles endpoints
Manage people, their roles and permissions, and read your own profile. Paths are relative to the address of your Simcha DB Studio server.
Through the MCP server these endpoints are the Users and Roles tool group, off until an admin turns it on.
| Method | Path | What it does |
|---|---|---|
| GET | /api/db-devops/users | List users |
| GET | /api/db-devops/users/:id | Get a user |
| POST | /api/db-devops/users | Create a user |
| PUT | /api/db-devops/users/:id | Change a user |
| PUT | /api/db-devops/users/:id/password | Change a user's password |
| POST | /api/db-devops/users/:id/deactivate | Deactivate a user |
| POST | /api/db-devops/users/:id/activate | Activate a user |
| DELETE | /api/db-devops/users/:id | Delete a user |
| GET | /api/roles | List roles |
| GET | /api/roles/:id/members | List the members of a role |
| POST | /api/roles | Create a custom role |
| PUT | /api/roles/:id | Change a role |
| DELETE | /api/roles/:id | Delete a custom role |
| GET | /api/roles/user/:userId | List the roles assigned to a user |
| PUT | /api/roles/user/:userId | Assign custom roles to a user |
| GET | /api/db-devops/roles | List the built-in roles |
| GET | /api/db-devops/permissions | List the permissions of built-in roles |
| GET | /api/me | Get my profile |
| GET | /api/me/session-policy | Get the session policy |
| GET | /api/me/onboarding | Get my onboarding progress |
| PUT | /api/me/onboarding | Save my onboarding progress |
GET /api/db-devops/users
Lists user accounts with their built-in role, whether they are active, when they last signed in and whether an invitation is pending. Admins see every user; others see only their own account.
Reads only · Role: Any signed-in user · MCP tool: users_list
No inputs.
GET /api/db-devops/users/:id
Returns one user account. Users who are not admins can read only their own account.
Reads only · Role: Any signed-in user · MCP tool: users_get
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The user ID |
POST /api/db-devops/users
Creates an active user account with a password and returns it. Refused when the email is already used, the password does not meet the password policy, or every license seat is taken.
Changes data · Role: Admin · MCP tool: users_create
| Input | Type | Description |
|---|---|---|
email (body) | string (email), required | The email address, up to 254 characters |
name (body) | string, required | The person's name, up to 255 characters |
role (body) | one of admin, release_manager, approver, user, optional | The built-in role. Default user |
password (body) | string, required | The first password. It must meet the password policy (by default at least 12 characters with an uppercase and a lowercase letter, a digit and a symbol) and be at most 200 characters |
PUT /api/db-devops/users/:id
Changes the name, email or built-in role of a user and returns the account. Other fields are refused. The only active admin cannot be given another role.
Changes data · Role: Admin · MCP tool: users_update
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The user ID |
name (body) | string, optional | The person's name, up to 255 characters |
email (body) | string (email), optional | The email address, up to 254 characters |
role (body) | one of admin, release_manager, approver, user, optional | The built-in role |
PUT /api/db-devops/users/:id/password
Sets a new password for the caller's own account, which needs the current password, or for any account when the caller is an admin. Sessions signed in before the change end. Refused when the new password does not meet the password policy.
Changes data · Role: Any signed-in user · Not available through the MCP server
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The user ID |
new_password (body) | string, required | The new password. It must meet the password policy and be at most 200 characters |
current_password (body) | string, optional | The current password. Required when changing your own password |
POST /api/db-devops/users/:id/deactivate
Deactivates a user account and returns it. The person can no longer sign in and their sessions and API tokens stop working. An admin cannot deactivate their own account or the only active admin.
Changes data and can remove or overwrite it · Role: Admin · MCP tool: users_deactivate
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The user ID |
POST /api/db-devops/users/:id/activate
Activates a deactivated user account and returns it. Refused when every license seat is taken.
Changes data · Role: Admin · MCP tool: users_activate
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The user ID |
DELETE /api/db-devops/users/:id
Deletes a user account. An admin cannot delete their own account or the only active admin. Refused when records that must be kept still refer to the account; deactivate it instead.
Changes data and can remove or overwrite it · Role: Admin · MCP tool: users_delete
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The user ID |
GET /api/roles
Lists the built-in and custom roles with the sections and permissions they grant, their identity provider groups and member counts, plus the catalog of permissions a role can grant.
Reads only · Role: Admin · MCP tool: roles_list
No inputs.
GET /api/roles/:id/members
Lists the users who hold a role, either as their built-in role or as an assigned custom role.
Reads only · Role: Admin · MCP tool: roles_members
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The role ID |
POST /api/roles
Creates a custom role and returns it. Refused when the name is taken or is the name of a built-in role, or a permission is unknown.
Changes data · Role: Admin · MCP tool: roles_create
| Input | Type | Description |
|---|---|---|
name (body) | string, required | The role name, up to 100 characters. It cannot be the name of a built-in role or of another role |
description (body) | string, optional | What the role is for, up to 500 characters |
permissions (body) | list of one of section:overview, section:configuration, section:change, section:schema, section:governance, section:admin, audit:read, optional | The sections and permissions the role grants. Only the admin role can include section:admin |
idpGroups (body) | list of string, optional | Identity provider groups whose members get the role, at most 50 |
PUT /api/roles/:id
Changes the fields sent. Built-in roles cannot be renamed or given identity provider groups, and the sections of the admin role cannot change.
Changes data · Role: Admin · MCP tool: roles_update
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The role ID |
name (body) | string, optional | The role name, up to 100 characters. It cannot be the name of a built-in role or of another role |
description (body) | string, optional | What the role is for, up to 500 characters |
permissions (body) | list of one of section:overview, section:configuration, section:change, section:schema, section:governance, section:admin, audit:read, optional | The sections and permissions the role grants, replacing the current ones. Only the admin role can include section:admin |
idpGroups (body) | list of string, optional | Identity provider groups whose members get the role, at most 50, replacing the current ones |
DELETE /api/roles/:id
Deletes a custom role and removes it from everyone who holds it. Built-in roles cannot be deleted.
Changes data and can remove or overwrite it · Role: Admin · MCP tool: roles_delete
| Input | Type | Description |
|---|---|---|
id (path) | string (uuid), required | The role ID |
GET /api/roles/user/:userId
Returns the IDs of the roles assigned to a user. The user's built-in role is shown on the account itself (users_get).
Reads only · Role: Admin · MCP tool: roles_user_get
| Input | Type | Description |
|---|---|---|
userId (path) | string (uuid), required | The user ID |
PUT /api/roles/user/:userId
Replaces the custom roles assigned to a user. Built-in roles are refused here; change them with users_update.
Changes data · Role: Admin · MCP tool: roles_user_set
| Input | Type | Description |
|---|---|---|
userId (path) | string (uuid), required | The user ID |
roleIds (body) | list of string (uuid), required | The custom roles the user should hold. An empty list removes them all |
GET /api/db-devops/roles
Lists the four built-in roles (admin, release_manager, approver, user) with their level and what each may do.
Reads only · Role: Any signed-in user · MCP tool: roles_built_in
No inputs.
GET /api/db-devops/permissions
Lists each permission with the lowest built-in role that has it.
Reads only · Role: Any signed-in user · MCP tool: roles_permissions
No inputs.
GET /api/me
Returns the caller's account, built-in role, permissions, the DB DevOps sections they can open and their personal settings.
Reads only · Role: Any signed-in user · MCP tool: users_me_get
No inputs.
GET /api/me/session-policy
Returns the idle time in minutes after which a session signs out and whether signing out on inactivity is on.
Reads only · Role: Any signed-in user · MCP tool: users_me_session_policy
No inputs.
GET /api/me/onboarding
Returns the caller's progress through the product tours, whether the welcome was seen or dismissed, and which first steps they have done (connected, ran a query, uploaded or ran a script, created a release).
Reads only · Role: Any signed-in user · MCP tool: users_me_onboarding_get
No inputs.
PUT /api/me/onboarding
Saves the fields sent of the caller's onboarding progress and returns the result.
Changes data · Role: Any signed-in user · MCP tool: users_me_onboarding_update
| Input | Type | Description |
|---|---|---|
tours (body) | object, optional | Tour progress to save |
tours.ide (body) | string or integer, optional | Progress of the IDE tour: pending, active, done, skipped, or the number of the step reached |
tours.manager (body) | string or integer, optional | Progress of the DB DevOps tour: pending, active, done, skipped, or the number of the step reached |
welcomeSeen (body) | boolean, optional | Whether the welcome was seen |
dismissed (body) | boolean, optional | Whether onboarding was dismissed |