---
title: "Update a user Data Warehouse role"
method: PUT
path: "/gdc/datawarehouse/instances/{instanceId}/users/{userId}"
tags: ["datawarehouse"]
---

# Update a user Data Warehouse role

`PUT /gdc/datawarehouse/instances/{instanceId}/users/{userId}`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/datawarehouse/instances/{instanceId}/users/{userId}`
- Auth: none declared

You must be an admin to perform this procedure.<br/> For more information about user roles, see [Data Warehouse User Roles](https://help.gooddata.com/display/doc/Data+Warehouse+User+Roles).

## Request body

- UserRequest
  - `user` UserCommon, required
    - `role` string, required: The user role. Can be `admin` (can manage the instance and users within in it), `dataAdmin` (can run queries; cannot manage users), or `readOnly` (can only access the instance in read-only mode; cannot make any changes in the instance). For more information about user roles, see [Data Warehouse User Roles](https://help.gooddata.com/display/doc/Data+Warehouse+User+Roles).
    - `profile` string, uri: URI of the user's profile
    - `login` string, email: GoodData login of the user. **NOTE:** Specify either `profile` or `login`, not both.
    - `links` SelfParentLinks: Self and parent links
      - `self` string, uri, required: Self link
      - `parent` string, uri, required: Parent link

## Response `204`

User has been updated in the instance

## Other responses

- `400`: Bad request (Invalid data in the request)
- `403`: User doesn't have rights to add change roles
- `404`: Either the instance or the user has not been found

---

[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)
