Removes the membership of the user given by userId or email from the organization given by orgId or orgName; the user account itself is kept. Returns 404 for an unknown organization or user and 400 when the user is not a member. Super admin only.
POST
/admin/organization/remove-user-from-org
curl \
--request POST 'http://api.example.com/admin/organization/remove-user-from-org' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"email": "string",
"userId": "string",
"orgId": "string",
"orgName": "string",
"deleteUser": false
}'
Request examples
{
"email": "string",
"userId": "string",
"orgId": "string",
"orgName": "string",
"deleteUser": false
}
Response examples (200)
{
"data": {
"message": "Done",
"isSuccess": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}