Delete a tenant user
Permanently deletes a tenant user. You cannot delete a user who is the default owner of their tenant — reassign the default owner first via Update a tenant, then retry the deletion.
Requires an Admin role.
Authorization
BearerAuth AuthorizationBearer <token>
A project-scoped access token. Generate one via the Token API with your project ID and project secret.
In: header
Path Parameters
tenantUserId*string
The tenant user's ID (either auto-generated or a custom ID you provided at creation time).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X delete "https://semaphor.cloud/api/management/v1/tenant-users/string"{
"message": "string",
"deletedUser": {
"id": "string",
"name": "string",
"email": "user@example.com",
"tenantName": "string"
}
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}