---
title: "Remove a user's admin-panel access to an app"
method: DELETE
path: "/v2/apps/{appId}/users/{userId}/access"
tags: ["Users"]
---

# Remove a user's admin-panel access to an app

`DELETE /v2/apps/{appId}/users/{userId}/access`

## Request

- Base URL: `https://api.chat.ethora.com`
- URL: `https://api.chat.ethora.com/v2/apps/{appId}/users/{userId}/access`
- Auth: HTTP bearer

Turns every grant on the user's ACL row for this app off; the account,
its chats and its login are untouched (archive the user for that).
Refuses the caller's own account and the app owner. A platform super
admin target is also demoted, but only when the caller is a super admin
with write; otherwise the ACL is revoked and 403
`SUPERADMIN_DEMOTE_FORBIDDEN` is returned. Tenant-actor authenticated,
needs `appUsers.admin` or `appSettings.admin` on the app.

## Path parameters

- `appId` string, required
- `userId` string, required

## Response `200`

`{ success: true, userId, hadAccess: boolean, superAdminCleared: boolean }`

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: `CANNOT_REVOKE_SELF`, `OWNER_CANNOT_BE_REVOKED`
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/ethora/apis/platform-api.md) · [All operations](https://skmtc.dev/ethora/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ethora/apis/platform-api/revisions/01b6e64378ee?raw)
