---
title: "Make a user a domain administrator"
method: POST
path: "/gdc/domains/{domainId}/admins"
tags: ["domain-admins"]
---

# Make a user a domain administrator

`POST /gdc/domains/{domainId}/admins`

## Request

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

## Path parameters

- `domainId` string, required

## Request body

- union
  - object
    - `domainAdmin` object, required
      - `userProfile` string, required: Profile url of the domain admin
      - `userLogin` string: Login of the domain admin
      - `links` DomainAdminLinks
        - `self` string, required: Link to self.
  - object
    - `domainAdmin` object, required
      - `userProfile` string: Profile url of the domain admin
      - `userLogin` string, required: Login of the domain admin
      - `links` DomainAdminLinks
        - `self` string, required: Link to self.

## Response `200`

The user is successfully made a domain administrator.

- union
  - object
    - `domainAdmin` object, required
      - `userProfile` string, required: Profile url of the domain admin
      - `userLogin` string: Login of the domain admin
      - `links` DomainAdminLinks
        - `self` string, required: Link to self.
  - object
    - `domainAdmin` object, required
      - `userProfile` string: Profile url of the domain admin
      - `userLogin` string, required: Login of the domain admin
      - `links` DomainAdminLinks
        - `self` string, required: Link to self.

## Other responses

- `400`: The API call failed due to a validation error. The provided data is incorrect (for example, the specified profile does not match the login).
- `403`: The API call failed because you are not a domain administrator in the domain.
- `404`: The API call failed because the user that you specified does not exist.
- `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)
