Acreum Docs
Platform

Org Users

GET
/v1/org-users

Required scope: admin:users

Pagination: none

Authorization

access-token
headerAuthorizationBearer <token>

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/org-users'
{  "data": [    {      "created_at": "string",      "deactivated_at": "2019-08-24T14:15:22Z",      "email": "string",      "first_name": "string",      "has_permission_overrides": true,      "last_name": "string",      "last_sign_in_at": "string",      "phone": "string",      "role": "owner",      "security_group_id": "ed8b011a-fe71-4249-953d-d5558ccd735b",      "status": "active",      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/org-users/invite

Required scope: admin:users

Error codes: ORG_USER_ALREADY_MEMBER, ORG_USER_INVITE_FAILED, ORG_USER_DEACTIVATED, SECURITY_HIERARCHY_FORBIDDEN, SECURITY_GROUP_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
email*string
Formatemail
first_name?string

Invitee's first name.

last_name?string

Invitee's last name.

phone?string

Invitee's phone number (free-form).

role?string

Legacy role — owner is not assignable via invite. Phase 2 (spec §15): security_group_id is now the primary field driving the invite; role is optional and, when omitted, is DERIVED from the assigned group (a system group's own base_role, or a neutral 'viewer' default for a custom group) so the legacy role-fallback resolver stays valid. Required only when security_group_id is omitted (the pre-Phase-2 role-only invite still works unchanged).

Value in"admin""accountant""clerk""viewer""facility"
security_group_id?string

Primary field (Phase 2, spec §15): the security group to assign on invite — rank-gated the same way a role assignment is (can't assign a group at/above the caller's own rank). When provided, the legacy role column is derived from this group unless role is also explicitly given. Omit to fall back to the legacy role-only invite, which resolves to that role's system group.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/org-users/invite' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com"}'
{  "data": {    "created_at": "string",    "deactivated_at": "2019-08-24T14:15:22Z",    "email": "string",    "email_status": "sent",    "first_name": "string",    "has_permission_overrides": true,    "last_name": "string",    "last_sign_in_at": "string",    "phone": "string",    "role": "owner",    "security_group_id": "ed8b011a-fe71-4249-953d-d5558ccd735b",    "status": "active",    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/org-users/{userId}

Required scope: admin:users

Error codes: ORG_USER_SELF_MUTATION, ORG_USER_OWNER_PROTECTED, ORG_USER_LAST_ADMIN, ORG_USER_NOT_FOUND, SECURITY_GROUP_NOT_FOUND, SECURITY_HIERARCHY_FORBIDDEN, SECURITY_LOCKOUT_PREVENTED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

userId*string

Request Body

application/json
  1. body
first_name?string

Member's first name.

last_name?string

Member's last name.

phone?string

Member's phone number (free-form).

role?string

owner is not assignable; role change is hierarchy-guarded.

Value in"admin""accountant""clerk""viewer""facility"
security_group_id?|

Assign a custom security group (must belong to the caller's org). null clears the assignment — the member falls back to role-derived scopes.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/org-users/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "created_at": "string",    "deactivated_at": "2019-08-24T14:15:22Z",    "email": "string",    "first_name": "string",    "has_permission_overrides": true,    "last_name": "string",    "last_sign_in_at": "string",    "phone": "string",    "role": "owner",    "security_group_id": "ed8b011a-fe71-4249-953d-d5558ccd735b",    "status": "active",    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
DELETE
/v1/org-users/{userId}

Required scope: admin:users

Error codes: ORG_USER_SELF_MUTATION, ORG_USER_OWNER_PROTECTED, ORG_USER_LAST_ADMIN, ORG_USER_NOT_FOUND, ORG_USER_NOT_PENDING, SECURITY_HIERARCHY_FORBIDDEN, SECURITY_LOCKOUT_PREVENTED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

userId*string

Response Body

application/json
  1. response
data*
meta*
curl -X DELETE 'https://api.acreum.io/v1/org-users/string'
{  "data": {    "created_at": "string",    "deactivated_at": "2019-08-24T14:15:22Z",    "email": "string",    "first_name": "string",    "has_permission_overrides": true,    "last_name": "string",    "last_sign_in_at": "string",    "phone": "string",    "role": "owner",    "security_group_id": "ed8b011a-fe71-4249-953d-d5558ccd735b",    "status": "active",    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/org-users/{userId}/activate

Returns the member to the live set with everything they had. The caller must be able to assign the rank the member comes back with.

Required scope: admin:users

Error codes: ORG_USER_NOT_FOUND, ORG_USER_OWNER_PROTECTED, SECURITY_HIERARCHY_FORBIDDEN

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

userId*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/org-users/string/activate'
{  "data": {    "created_at": "string",    "deactivated_at": "2019-08-24T14:15:22Z",    "email": "string",    "first_name": "string",    "has_permission_overrides": true,    "last_name": "string",    "last_sign_in_at": "string",    "phone": "string",    "role": "owner",    "security_group_id": "ed8b011a-fe71-4249-953d-d5558ccd735b",    "status": "active",    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/org-users/{userId}/deactivate

Moves the membership out of the live set: the member is refused on every request with ORG_MEMBER_DEACTIVATED, and activation restores role, security group, per-user overrides, approval limit and legal-entity scope exactly. Guarded like removal: not self, owners only by an owner, strictly-lower rank, last-admin floor, anti-lockout.

Required scope: admin:users

Error codes: ORG_USER_SELF_MUTATION, ORG_USER_OWNER_PROTECTED, ORG_USER_LAST_ADMIN, ORG_USER_NOT_FOUND, SECURITY_HIERARCHY_FORBIDDEN, SECURITY_LOCKOUT_PREVENTED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

userId*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/org-users/string/deactivate'
{  "data": {    "created_at": "string",    "deactivated_at": "2019-08-24T14:15:22Z",    "email": "string",    "first_name": "string",    "has_permission_overrides": true,    "last_name": "string",    "last_sign_in_at": "string",    "phone": "string",    "role": "owner",    "security_group_id": "ed8b011a-fe71-4249-953d-d5558ccd735b",    "status": "active",    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/org-users/{userId}/password-reset

Generates a one-time recovery link and sends the branded reset email. The admin never sees or sets the password. Not available for pending invites (resend the invite instead).

Required scope: admin:users

Error codes: ORG_USER_NOT_FOUND, ORG_USER_PENDING, SECURITY_HIERARCHY_FORBIDDEN, ORG_USER_INVITE_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

userId*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/org-users/string/password-reset'
{  "data": {    "email_status": "sent"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/org-users/{userId}/permissions

Required scope: admin:roles

Error codes: ORG_USER_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

userId*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/org-users/string/permissions'
{  "data": {    "baseline": [      {        "action": "view",        "resource": "documents"      }    ],    "effective": [      {        "action": "view",        "resource": "string",        "source": "group"      }    ],    "entity_scope": {      "legal_entity_ids": [        "66349575-4160-4a79-b2da-3eb801e491dd"      ],      "mode": "inherit"    },    "group": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_system": true,      "name": "string",      "permissions": [        {          "action": "view",          "resource": "documents"        }      ]    },    "group_legal_entity_ids": [      "15f190c9-8470-49ec-b62e-86533613d908"    ],    "overrides": [      {        "action": "view",        "effect": "grant",        "resource": "documents"      }    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PUT
/v1/org-users/{userId}/permissions

Required scope: admin:roles

Error codes: ORG_USER_NOT_FOUND, SECURITY_GROUP_INVALID_RESOURCE, SECURITY_HIERARCHY_FORBIDDEN, SECURITY_LOCKOUT_PREVENTED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

userId*string

Request Body

application/json
  1. body
entity_scope?

Optional per-user legal-entity scope override. Omit to leave the user's current entity scope unchanged.

overrides*array<>

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/org-users/string/permissions' \  -H 'Content-Type: application/json' \  -d '{  "overrides": [    {      "action": "view",      "effect": "grant",      "resource": "documents"    }  ]}'
{  "data": {    "baseline": [      {        "action": "view",        "resource": "documents"      }    ],    "effective": [      {        "action": "view",        "resource": "string",        "source": "group"      }    ],    "entity_scope": {      "legal_entity_ids": [        "66349575-4160-4a79-b2da-3eb801e491dd"      ],      "mode": "inherit"    },    "group": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_system": true,      "name": "string",      "permissions": [        {          "action": "view",          "resource": "documents"        }      ]    },    "group_legal_entity_ids": [      "15f190c9-8470-49ec-b62e-86533613d908"    ],    "overrides": [      {        "action": "view",        "effect": "grant",        "resource": "documents"      }    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}