---
title: "Remove the domain administrator privileges from a user"
method: DELETE
path: "/gdc/domains/{domainId}/admins/{userId}"
tags: ["domain-admins"]
---

# Remove the domain administrator privileges from a user

`DELETE /gdc/domains/{domainId}/admins/{userId}`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/domains/{domainId}/admins/{userId}`
- Auth: none declared

## Path parameters

- `domainId` string, required
- `userId` string, required

## Response `204`

The domain administrator privileges are successfully removed from the user.

## Other responses

- `400`: The API call failed. This has happened because the user with this profile ID is either not a domain administrator or the only domain administrator in the domain. You can make another user an administrator in this domain, and then re-issue the call.
- `403`: The API call failed because you are not a domain administrator in the domain.
- `default`: Common error

---

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