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.

MethodPathWhat it does
GET/api/db-devops/usersList users
GET/api/db-devops/users/:idGet a user
POST/api/db-devops/usersCreate a user
PUT/api/db-devops/users/:idChange a user
PUT/api/db-devops/users/:id/passwordChange a user's password
POST/api/db-devops/users/:id/deactivateDeactivate a user
POST/api/db-devops/users/:id/activateActivate a user
DELETE/api/db-devops/users/:idDelete a user
GET/api/rolesList roles
GET/api/roles/:id/membersList the members of a role
POST/api/rolesCreate a custom role
PUT/api/roles/:idChange a role
DELETE/api/roles/:idDelete a custom role
GET/api/roles/user/:userIdList the roles assigned to a user
PUT/api/roles/user/:userIdAssign custom roles to a user
GET/api/db-devops/rolesList the built-in roles
GET/api/db-devops/permissionsList the permissions of built-in roles
GET/api/meGet my profile
GET/api/me/session-policyGet the session policy
GET/api/me/onboardingGet my onboarding progress
PUT/api/me/onboardingSave 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
email (body)string (email), requiredThe email address, up to 254 characters
name (body)string, requiredThe person's name, up to 255 characters
role (body)one of admin, release_manager, approver, user, optionalThe built-in role. Default user
password (body)string, requiredThe 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

InputTypeDescription
id (path)string (uuid), requiredThe user ID
name (body)string, optionalThe person's name, up to 255 characters
email (body)string (email), optionalThe email address, up to 254 characters
role (body)one of admin, release_manager, approver, user, optionalThe 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

InputTypeDescription
id (path)string (uuid), requiredThe user ID
new_password (body)string, requiredThe new password. It must meet the password policy and be at most 200 characters
current_password (body)string, optionalThe 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
name (body)string, requiredThe role name, up to 100 characters. It cannot be the name of a built-in role or of another role
description (body)string, optionalWhat 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, optionalThe sections and permissions the role grants. Only the admin role can include section:admin
idpGroups (body)list of string, optionalIdentity 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

InputTypeDescription
id (path)string (uuid), requiredThe role ID
name (body)string, optionalThe role name, up to 100 characters. It cannot be the name of a built-in role or of another role
description (body)string, optionalWhat 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, optionalThe sections and permissions the role grants, replacing the current ones. Only the admin role can include section:admin
idpGroups (body)list of string, optionalIdentity 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

InputTypeDescription
id (path)string (uuid), requiredThe 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

InputTypeDescription
userId (path)string (uuid), requiredThe 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

InputTypeDescription
userId (path)string (uuid), requiredThe user ID
roleIds (body)list of string (uuid), requiredThe 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

InputTypeDescription
tours (body)object, optionalTour progress to save
tours.ide (body)string or integer, optionalProgress of the IDE tour: pending, active, done, skipped, or the number of the step reached
tours.manager (body)string or integer, optionalProgress of the DB DevOps tour: pending, active, done, skipped, or the number of the step reached
welcomeSeen (body)boolean, optionalWhether the welcome was seen
dismissed (body)boolean, optionalWhether onboarding was dismissed