---
title: "Cancel admin permissions"
method: DELETE
path: "/team/{team_id}/admin/{user_id}"
---

# Cancel admin permissions

`DELETE /team/{team_id}/admin/{user_id}`

## Request

- Base URL: `https://api.signnow.com`
- URL: `https://api.signnow.com/team/{team_id}/admin/{user_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/signnow/apis/signnow-api/docs/team/:team_id/admin/:user_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows API users to cancel admin permissions of a team admin. By default, the request also removes the user from the team, revokes access of the user to shared folders, and removes all documents that the user shared from shared folders to user's folders.

If the path parameter `downgrade_only=true` is used, the user loses admin permissions but remains a member of the team and keeps access to shared folders.

***Requires access token of team primary admin or admin.***

## Response `200`

Admin permissions were cancelled.

- object
  - `result` string: Result of the request. Always `success`.

## Other responses

- `400`: * Trying to cancel rights for a user that is not a team admin. * Admin is trying to cancel their own admin permissions. * Team admin cannot cancel rights for a primary admin. * User is not a team admin. * Team not found. * User not found. * `downgrade_only` is not a boolean.

---

[API](https://skmtc.dev/signnow/apis/signnow-api.md) - [All operations](https://skmtc.dev/signnow/apis/signnow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/signnow/apis/signnow-api/revisions/1c9c30a6142b?raw)
