Remove a member
The member's grants, overrides and open invites go, their Postgres member roles are dropped on every branch, their personal logins are revoked (the member is marked offboarded) and realtime drops what they watched, all in this request. When they are an active member of no other tenant, their account's sessions end, and when no other tenant holds them at all (an open invite, a pending sign-up or a suspension counts) the account is banned too. While they are an active member of another tenant the account is left alone (its sessions name the tenant they were made for, and minting a token checks that membership). A still-valid token is refused at once. Every step runs even when one fails; removing a removed member again redoes every step after the removal.
Authorization
bearer In: header
Path Parameters
Member id
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/members/497f6eca-6276-4993-bfeb-53cbbbba6f08"Make a member a tenant admin, or not PATCH
A tenant admin manages people and projects and is admin on every project. Demoting one checks what they keep (their own grants, overrides and teams' grants) as any grant is checked. Every branch of the tenant reconciles its member roles.
Approve a sign-up POST
A person who signed up under open sign-up is `pending` and can do nothing (`pending_approval`) until a tenant admin approves them here, with their first grants. The grants are checked exactly as an invite's are; the member becomes `active`, the grants are stored and one `member_approved` event is written in one step.