Skip to content
NimbusNexus

Users

A user is an identity in a workspace. Users hold roles on the workspace's projects (which grant permissions) and can generate API keys (each one belongs to the user and is scoped to one project).

User ≠ login

A "user" in this API is the identity record, not the human. Each user belongs to exactly one workspace, and its name is unique there. Inside the workspace, the same user can hold different roles on different projects:

  • One role on prod (the production project)
  • Another role on staging
  • No role at all on dev

What a user can do in a project comes from the roles it holds there, granted directly or through a group. That's the boundary to lean on for blast-radius containment: grant roles on prod only to the users who need them.

What you can do to a user

  • Create — add a user to the caller's workspace, with a name and, optionally, a password, a description and the enabled flag.
  • Get — read one user record by ID.
  • Update — change the name, description, enabled flag or password.
  • Delete — permanently remove. All role assignments and API keys owned by the user are revoked atomically.

All four need the admin role and a session scoped to the workspace itself, not to one of its projects. An API key is always scoped to one project, so a key's call to any of them answers 400.

A password goes in and never comes out: a user record holds only id, name, description and enabled.

There's no "disable" separate from "delete." If you want a soft-disable (keep audit history, prevent login), set enabled: false via update — that's the soft-disable path. Delete is hard-delete + revoke everything.

What you can't do

  • Move a user to another workspace. Create a new user in the target workspace, grant the roles you want there, delete the old one. Inside one workspace there's nothing to move: grant the user a role on the other project.
  • Reach a user in another workspace. Get, update and delete only find users in the caller's workspace. For anyone else they answer 404.

What's next

  • Workspaces — the container users live in.
  • Roles — what to grant a user once they exist.
  • Authentication — how API keys (issued per user) work.

Reference

POST/api/v1/api_keys/

Create Api Key

Create an application credential (API key) in project_id, or in the session's project when that is left out. The secret is returned only once.

Request body

FieldTypeDescription
name*string—
project_idstring | nullThe project the key works in. Required unless the session is scoped to a project, which is then the default.
secretstring | nullIf omitted, Keystone generates it
descriptionstring | null—
expires_atstring | nullISO8601 datetime
rolesarray of string | nullRole names or IDs. If omitted, Keystone uses defaults (usually user's roles in the project).
unrestrictedbooleanPotentially dangerous. Default is restricted behavior.
access_rulesarray of ApiKeyAccessRuleIn | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 409Conflict
  • 422Validation error
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/api_keys/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
GET/api/v1/api_keys/access_rules/list

List Access Rules

List the access rules associated with a user's application credentials.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/api_keys/access_rules/list" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/api_keys/access_rules/{access_rule_id}

Get Access Rule

Show the details of a single access rule by id.

Parameters

NameInTypeDescription
access_rule_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/api_keys/access_rules/<access_rule_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
DELETE/api/v1/api_keys/access_rules/{access_rule_id}

Delete Access Rule

Delete an access rule by id.

Parameters

NameInTypeDescription
access_rule_id*pathstring—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/api_keys/access_rules/<access_rule_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/api_keys/access_rules_artifacts

Access Rules Artifacts

Returns a complete list of methods and paths registered in FastAPI.

Parameters

NameInTypeDescription
paramsquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 422Validation error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/api_keys/access_rules_artifacts" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/api_keys/list

List Api Keys

List the current user's application credentials (API keys) in the session's workspace, each with its project_id. Secrets are never returned.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/api_keys/list" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/api_keys/{api_key_id}

Get Api Key

Get a single application credential (API key) in the session's workspace by id.

Parameters

NameInTypeDescription
api_key_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/api_keys/<api_key_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
DELETE/api/v1/api_keys/{api_key_id}

Delete Api Key

Delete (revoke) an application credential (API key) in the session's workspace.

Parameters

NameInTypeDescription
api_key_id*pathstring—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/api_keys/<api_key_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/users/

List Users

List the users of the caller's workspace/project, derived from their role assignments in the scope. Each user is flagged as a full member, an invited (not-yet-accepted) account, or unassigned (no role). Filter with type (all/invited/members/unassigned) and narrow by group membership or a name search. In a workspace scope all covers everyone: members, invitees and the workspace's role-less accounts. In a project scope it covers members and invitees; role-less accounts need type=unassigned there.

Parameters

NameInTypeDescription
groupquerystring | null—
searchquerystring | null—
typequery"all" | "invited" | "members" | "unassigned"—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/users/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/users/

Create User

Create a new user in the caller's workspace with the given name, password and enabled flag. Refused with 403 where the deployment signs in through Keycloak: invite people in the account console there.

Request body

FieldTypeDescription
name*string—
passwordstring | null—
descriptionstring | null—
enabledboolean | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/users/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
GET/api/v1/users/{user_id}

Get User

Retrieve a single user by ID, scoped to the caller's workspace.

Parameters

NameInTypeDescription
user_id*pathstring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/users/<user_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PATCH/api/v1/users/{user_id}

Update User

Update mutable attributes (name, description, enabled, password) of a user in the caller's workspace and return the updated record.

Parameters

NameInTypeDescription
user_id*pathstring—

Request body

FieldTypeDescription
namestring | null—
passwordstring | null—
descriptionstring | null—
enabledboolean | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/users/<user_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
DELETE/api/v1/users/{user_id}

Delete User

Permanently delete a user in the caller's workspace by ID.

Parameters

NameInTypeDescription
user_id*pathstring—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/users/<user_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →