Remove a tenant member
Remove someone from a tenant.
DELETE /organizations/{org}/tenants/{tenantId}/members/{userId}
Removes the membership. The user account itself is left alone.
Authorization
Org owner, or owner / admin of this tenant. Anyone else gets 403 forbidden.
Path parameters
| Name | Type | Description |
|---|---|---|
org | string | The organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it) |
tenantId | string | The tenant, tnt_… |
userId | string | The member, usr_… |
Response
204 No Content
Errors
| Status | error | When |
|---|---|---|
403 | forbidden | You may not manage this tenant’s members |
404 | not_found | No such member, tenant or org, or an id of the wrong kind |
Example
curl -X DELETE https://loginwith.loginwith.dev/organizations/acme/tenants/tnt_65f1c2a9e4b0d3f7a1c8e908/members/usr_65f1c2a9e4b0d3f7a1c8e909 \
-H "Authorization: Bearer $TOKEN"