People

Staff accounts: create, edit, turn off and delete people; their username and email aliases, mailbox, groups, roles and licences; reset passwords and two-step sign-in; sign someone out everywhere. A person's username is their email address on one of the organisation's verified domains.

MethodPathSummary
GET/v1/admin/tenant/usersList people
POST/v1/admin/tenant/users/:id/revoke-sessionsSign a person out everywhere
GET/v1/admin/tenant/subjects/usersFind people (for pickers)
GET/v1/admin/tenant/subjects/groupsFind groups (for pickers)
POST/v1/admin/user/check-emailIs this address free?
POST/v1/admin/userCreate a person
POST/v1/admin/tenant/userGet a person
PUT/v1/admin/tenant/users/:id/pictureSet a person's photo
DELETE/v1/admin/tenant/users/:id/pictureRemove a person's photo
PATCH/v1/admin/tenant/userChange one field on a person
PATCH/v1/admin/user/profileUpdate a person's name details
PATCH/v1/admin/user/accountUpdate a person's account
GET/v1/admin/user/addressesA person's username and aliases
PATCH/v1/admin/user/usernameChange a person's username
POST/v1/admin/user/aliasesAdd an email alias
DELETE/v1/admin/user/aliases/:idRemove an email alias
PATCH/v1/admin/user/mailboxChange a person's mailbox
PATCH/v1/admin/user/groupsSet a person's groups
PATCH/v1/admin/user/rolesSet a person's roles
PATCH/v1/admin/user/licensesSet a person's licences
PATCH/v1/admin/user/securityReset a person's password
POST/v1/admin/user/mfa/resetReset a person's two-step sign-in
DELETE/v1/admin/userDelete a person

#List people

GET/v1/admin/tenant/users

Every staff account in the organisation, with their roles.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Response 200

FieldTypeDescription
usersarray of any
Example response
JSON
{
  "users": []
}

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Sign a person out everywhere

POST/v1/admin/tenant/users/:id/revoke-sessions

Sign a user out everywhere. GLOBAL_ADMIN only. Deletes every Bramble Cloud session for the user.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users/:id/revoke-sessions
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Path parameters

NameTypeDescription
idrequiredinteger

Response 200

FieldTypeDescription
successboolean
revokedinteger
Example response
JSON
{
  "success": true,
  "revoked": 1
}

Errors

StatusMessage
404User not found

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users/42/revoke-sessions' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Find people (for pickers)

GET/v1/admin/tenant/subjects/users

Search the tenant's users for use as a subject picker (security policies, OIDC access, groups). Requires the GLOBAL_ADMIN role. Matches first/last/display name or email, limited to 50 results.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/subjects/users
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).

Query parameters

NameTypeDescription
qany

Response 200

FieldTypeDescription
usersarray of object
users[].idinteger
users[].labelany
users[].emailstring
Example response
JSON
{
  "users": [
    {
      "id": 42,
      "label": null,
      "email": "alex@example.com"
    }
  ]
}

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/subjects/users' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Find groups (for pickers)

GET/v1/admin/tenant/subjects/groups

Search the tenant's groups for use as a subject picker (security policies, OIDC access). Requires the GLOBAL_ADMIN role. Matches group name, limited to 50 results.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/subjects/groups
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).

Query parameters

NameTypeDescription
qany

Response 200

FieldTypeDescription
groupsarray of object
groups[].idinteger
groups[].labelstring
Example response
JSON
{
  "groups": [
    {
      "id": 42,
      "label": "Example label"
    }
  ]
}

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/subjects/groups' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Is this address free?

POST/v1/admin/user/check-email

Checks an address before creating or renaming someone.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/check-email
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
local_partrequiredstringThe part before the @.
domainrequiredstringOne of the organisation's verified domains.
exclude_user_idanyWhen renaming, the person being renamed.

Response 200

FieldTypeDescription
availableboolean
emailstring
messagestring
Example response
JSON
{
  "available": false,
  "email": "alex@example.com",
  "message": "Saved"
}

Errors

StatusMessage
400local_part and domain are required
404Admin user not found

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/admin/user/check-email' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"local_part":"string","domain":"string","exclude_user_id":"…"}'

#Create a person

POST/v1/admin/user

Creates a staff account. The username (email) must be on one of the organisation's verified domains. Roles, licences and groups can be given at the same time. Needs Global Administrator.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
first_namestringFirst name.
last_namestringLast name.
display_namestringHow their name is shown.
emailrequiredstringTheir username: an address on a verified domain, e.g. alex@example.com.
recovery_emailstringA personal address for password resets.
departmentany
job_titlestring
locationany
passwordrequiredanyTheir first password.
rolesarray of anyRole slugs to give them, e.g. ["RMM_TECHNICIAN"].
package_idsarray of anyLicence package ids to assign.
group_idsarray of anyGroup ids to add them to.

Response 201

FieldTypeDescription
successboolean
messagestring
user_idinteger
Example response
JSON
{
  "success": true,
  "message": "Saved",
  "user_id": 7
}

Errors

StatusMessage
400email and password are required
400Invalid email format
400Username can only contain letters, numbers, dots, underscores and hyphens
400Selected domain is not verified for this tenant
404Admin user not found
409A user with this email already exists

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/admin/user' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"Alex","last_name":"Morgan","display_name":"Example display name","email":"alex@example.com","recovery_email":"alex@example.com","department":"…","job_title":"Example job title","location":"…","password":"…","roles":[],"package_ids":[],"group_ids":[]}'

#Get a person

POST/v1/admin/tenant/user

One person's full profile, groups and licences. (A POST because it takes user_id in the body.)

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/user
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idinteger

Response 200

FieldTypeDescription
userobject
user.groupsarray of object
user.groups[].idinteger
user.groups[].group_namestring
user.licensesarray of object
user.licenses[].tenant_package_idinteger
user.licenses[].package_idinteger
user.licenses[].seatsinteger
user.licenses[].expires_atstring (date-time), or null
user.licenses[].acquired_atstring (date-time)
user.licenses[].is_activeboolean
user.licenses[].package_namestring
user.licenses[].package_descriptionstring, or null
user.licenses[].applicationsobject
Example response
JSON
{
  "user": {
    "…tenantUser": "…",
    "groups": [
      {
        "id": 42,
        "group_name": "Example group name"
      }
    ],
    "licenses": [
      {
        "tenant_package_id": 7,
        "package_id": 7,
        "seats": 1,
        "expires_at": "2026-11-12T09:30:00.000Z",
        "acquired_at": "2026-11-12T09:30:00.000Z",
        "is_active": true,
        "package_name": "Example package name",
        "package_description": "string",
        "applications": {}
      }
    ]
  }
}

Errors

StatusMessage
404User not found
404No user found

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/user' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7}'

#Set a person's photo

PUT/v1/admin/tenant/users/:id/picture
Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users/:id/picture
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Path parameters

NameTypeDescription
idrequirednumber

Request body JSON

NameTypeDescription
imageanyThe image as a data URL (data:image/png;base64,…).

Response 200

FieldTypeDescription
profile_pictureany
Example response
JSON
{
  "profile_picture": null
}

Errors

StatusMessage
404User not found

Example request

Bash
curl -X PUT 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users/12.5/picture' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image":"…"}'

#Remove a person's photo

DELETE/v1/admin/tenant/users/:id/picture
Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users/:id/picture
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Path parameters

NameTypeDescription
idrequirednumber

Response 200

FieldTypeDescription
profile_pictureany
Example response
JSON
{
  "profile_picture": null
}

Errors

StatusMessage
404User not found

Example request

Bash
curl -X DELETE 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/users/12.5/picture' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Change one field on a person

PATCH/v1/admin/tenant/user

Update a single field on a tenant user. Requires the GLOBAL_ADMIN role. Generic single-field setter — updatedField must be one of first_name, last_name, email, recovery_email, display_name, profile_picture, status; updatedData is the new value.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/tenant/user
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idinteger
updatedFieldstringThe field to change.
updatedDatanumberIts new value.

Response 200

FieldTypeDescription
messagestring
Example response
JSON
{
  "message": "Saved"
}

Errors

StatusMessage
400Invalid updatedField value
404User not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/tenant/user' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7,"updatedField":"string","updatedData":12.5}'

#Update a person's name details

PATCH/v1/admin/user/profile

Update a user's display/personal name fields. Requires the GLOBAL_ADMIN role. Only display_name, first_name, last_name, recovery_email are updatable here; only fields actually present in the body are written.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/profile
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequiredinteger
display_namestring
first_namestring
last_namestring
recovery_emailstring

Response 200

FieldTypeDescription
successboolean
messagestring
Example response
JSON
{
  "success": true,
  "message": "Saved"
}

Errors

StatusMessage
400user_id is required
400No valid fields to update
404Admin user not found
404User not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/profile' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7,"display_name":"Example display name","first_name":"Alex","last_name":"Morgan","recovery_email":"alex@example.com"}'

#Update a person's account

PATCH/v1/admin/user/account

Update a user's account fields (email, status, department, job title, location). Requires the GLOBAL_ADMIN role. Only fields actually present in the body are written.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/account
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequiredinteger
statusstring1 active, 0 turned off. Turning someone off signs them out and stops their API keys.
departmentany
job_titlestring
locationany

Response 200

FieldTypeDescription
successboolean
messagestring
Example response
JSON
{
  "success": true,
  "message": "Saved"
}

Errors

StatusMessage
400user_id is required
400No valid fields to update
404Admin user not found
404User not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/account' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7,"status":"active","department":"…","job_title":"Example job title","location":"…"}'

#A person's username and aliases

GET/v1/admin/user/addresses

A user's username and aliases. Requires the GLOBAL_ADMIN role. Mail to any of these addresses reaches the user's mailbox; only the username signs in.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/addresses
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Query parameters

NameTypeDescription
user_idnumber

Response 200

FieldTypeDescription
successboolean
usernamestring
aliasesarray of any
mailbox_domainstring
Example response
JSON
{
  "success": true,
  "username": "Example username",
  "aliases": [],
  "mailbox_domain": "string"
}

Errors

StatusMessage
404User not found

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/admin/user/addresses' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Change a person's username

PATCH/v1/admin/user/username

Change a user's username. Requires the GLOBAL_ADMIN role. The new address must be on a verified domain and not anyone's username or alias. With keep_old_as_alias (default true) the old username stays as an alias, so mail to it keeps arriving. Sign-in moves to the new username.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/username
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idnumber
local_partany
domainstring
keep_old_as_aliasbooleanKeep the old address as an alias so mail still arrives.

Response 200

FieldTypeDescription
successboolean
messagestring
usernamestring
Example response
JSON
{
  "success": true,
  "message": "Saved",
  "username": "Example username"
}

Errors

StatusMessage
404User not found
409That address is already someone's username or alias.

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/username' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":12.5,"local_part":"…","domain":"string","keep_old_as_alias":false}'

#Add an email alias

POST/v1/admin/user/aliases

Add an alias to a user. Requires the GLOBAL_ADMIN role. The alias must be on a verified domain and not anyone's username or alias.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/aliases
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idnumber
local_partany
domainstring

Response 201

FieldTypeDescription
successboolean
idinteger
emailstring
Example response
JSON
{
  "success": true,
  "id": 42,
  "email": "alex@example.com"
}

Errors

StatusMessage
404User not found
409That address is already someone's username or alias.

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/admin/user/aliases' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":12.5,"local_part":"…","domain":"string"}'

#Remove an email alias

DELETE/v1/admin/user/aliases/:id

Remove an alias from a user. Requires the GLOBAL_ADMIN role. Mail to the address stops arriving.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/aliases/:id
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Path parameters

NameTypeDescription
idrequirednumber

Query parameters

NameTypeDescription
user_idnumber

Response 200

FieldTypeDescription
successboolean
emailstring
Example response
JSON
{
  "success": true,
  "email": "alex@example.com"
}

Errors

StatusMessage
404User not found
404Alias not found

Example request

Bash
curl -X DELETE 'https://<your-org>.brambleit.cloud/api/v1/admin/user/aliases/12.5' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Change a person's mailbox

PATCH/v1/admin/user/mailbox

Update a user's mailbox settings. Requires the GLOBAL_ADMIN role. Updates the mailboxes table row for the user (enabled, quota, plan, forwarding address); only fields actually present in the body are written.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/mailbox
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequiredinteger
mailbox_enabledanyWhether they have a mailbox.
mailbox_quota_gbanyMailbox size in GB.
mailbox_plananyThe mailbox plan.
forwarding_addressanyForward their mail to this address, or empty for none.

Response 200

FieldTypeDescription
successboolean
messagestring
Example response
JSON
{
  "success": true,
  "message": "Saved"
}

Errors

StatusMessage
400user_id is required
400No fields to update
404Admin user not found
404Mailbox not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/mailbox' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7,"mailbox_enabled":"…","mailbox_quota_gb":"…","mailbox_plan":"…","forwarding_address":"…"}'

#Set a person's groups

PATCH/v1/admin/user/groups

Replaces their group memberships with exactly this list.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/groups
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequiredinteger
group_idsarray of any

Response 200

FieldTypeDescription
successboolean
messagestring
Example response
JSON
{
  "success": true,
  "message": "Saved"
}

Errors

StatusMessage
400user_id and group_ids (array) are required
404Admin user not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/groups' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7,"group_ids":[]}'

#Set a person's roles

PATCH/v1/admin/user/roles

Replaces their roles with exactly this list. You can't remove your own Global Administrator role, or the organisation's last one.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/roles
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequirednumber
rolesarray of any

Response 200

FieldTypeDescription
successboolean
messagestring
rolesarray of any
Example response
JSON
{
  "success": true,
  "message": "Saved",
  "roles": []
}

Errors

StatusMessage
400user_id is required
400roles must be an array
400One or more roles are invalid
404Admin user not found
409You can't remove your own Global Administrator role. Ask another Global Administrator.
409This is the organisation's only Global Administrator.
404User not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/roles' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":12.5,"roles":[]}'

#Set a person's licences

PATCH/v1/admin/user/licenses

Replaces their licence packages with exactly this list. Fails if a package has no free seats.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/licenses
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequiredinteger
license_idsarray of any

Response 200

FieldTypeDescription
successboolean
messagestring
Example response
JSON
{
  "success": true,
  "message": "Saved",
  "…mailWarning ? { mail_war": "…"
}

Errors

StatusMessage
400user_id and license_ids (array) are required
400One or more selected packages have no seats available
404Admin user not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/licenses' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7,"license_ids":[]}'

#Reset a person's password

PATCH/v1/admin/user/security

Reset a user's login password. Requires the GLOBAL_ADMIN role. new_password and confirm_password must match. Best-effort syncs the new plaintext password to the user's mailbox too (skipped for guests, who never have a mailbox), using their current mail-license enabled state.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/security
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequiredinteger
new_passwordrequiredany
confirm_passwordrequiredany

Response 200

FieldTypeDescription
successboolean
messagestring
Example response
JSON
{
  "success": true,
  "message": "Saved"
}

Errors

StatusMessage
400user_id is required
400Nothing to update – password fields are empty
400New password and confirmation do not match
404Admin user not found
404User not found

Example request

Bash
curl -X PATCH 'https://<your-org>.brambleit.cloud/api/v1/admin/user/security' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7,"new_password":"…","confirm_password":"…"}'

#Reset a person's two-step sign-in

POST/v1/admin/user/mfa/reset

Turns off their authenticator so they can set it up again at next sign-in.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user/mfa/reset
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequiredinteger

Response 200

FieldTypeDescription
successboolean
messagestring
Example response
JSON
{
  "success": true,
  "message": "Saved"
}

Errors

StatusMessage
400user_id is required
404User not found

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/admin/user/mfa/reset' \
  -H "X-API-Key: $BRAMBLE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":7}'

#Delete a person

DELETE/v1/admin/user

Permanently deletes the account. Their mailbox is either turned into a shared mailbox (shared) or deleted with all its mail (delete). You can't delete yourself.

Address
https://<your-org>.brambleit.cloud/api/v1/admin/user
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Role: GLOBAL_ADMIN.

Request body JSON

NameTypeDescription
user_idrequirednumber
mailboxstring: "shared" | "delete"

Response 200

FieldTypeDescription
successboolean
messagestring
mailboxany
Example response
JSON
{
  "success": true,
  "message": "Saved",
  "mailbox": null
}

Errors

StatusMessage
400user_id is required
400You cannot remove your own account
400mailbox must be 'shared' or 'delete'
404Admin user not found
404User not found
503The mail server isn't answering, so their mailbox can't be dealt with. Nothing was removed; try again in a few minutes.

Example request

Bash
curl -X DELETE 'https://<your-org>.brambleit.cloud/api/v1/admin/user' \
  -H "X-API-Key: $BRAMBLE_KEY"