ts.org.remove_member
Remove a user from an organization.
Remove a user from an organization.
Requires authentication
Description
Removes a user’s membership from an organization.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
org_id | string | Yes | Organization ID | |
user_id | string | Yes | User ID to remove |
Response
Returns confirmation of removal.
{
"org_id": "org_1d9cb149497656c7...",
"removed": true,
"user_id": "usr_476931df38eb2662..."
}
Errors
| Code | Description |
|---|---|
not_authenticated | No active login for this session |
not_found | Organization or membership not found |
forbidden | Cannot remove the last owner |