Remove User from a Tenant
Remove a user from a tenant.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Delete Warrant endpoint instead.
Endpoint
DELETE /v1/tenants/:tenantId/users/:userId
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
tenantId | The tenantId of the tenant you want to remove the user from. | URL param | yes |
userId | The userId of the user you want to remove from the tenant. | URL param | yes |
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/tenants/tenant1/users/user1" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY"
wookie, err := user.RemoveUserFromTenant("user1", "tenant1")
client.removeUserFromTenant("user1", "tenant1");
// Class method
await warrantClient.User.removeUserFromTenant("tenant1", "user1");
// Instance method
const tenant = await warrantClient.Tenant.get("tenant1");
await tenant.removeUser("user1");
# Class method
warrant.User.remove_from_tenant("tenant1", "user1")
# Instance method
tenant = warrant.Tenant.get("tenant1")
tenant.remove_user("user1")
# Class method
Warrant::User.remove_from_tenant("tenant1", "user1")
# Instance method
tenant = Warrant::Tenant.get("tenant1")
tenant.remove_user("user1")
$warrant->removeUserFromTenant("tenant1", "user1");
warrant remove user:user1 tenant:tenant1
Response
200 OK