---
title: "Update Project Roles for One MongoDB Cloud User"
method: PUT
path: "/api/atlas/v2/groups/{groupId}/users/{userId}/roles"
tags: ["Projects"]
deprecated: true
---

# Update Project Roles for One MongoDB Cloud User

`PUT /api/atlas/v2/groups/{groupId}/users/{userId}/roles`

> **Deprecated.**

Updates the roles of the specified user in the specified project. To specify the user to update, provide the unique 24-hexadecimal digit string that identifies the user in the specified project.

## Path parameters

- `groupId` string, required
- `userId` string, required

## Query parameters

- `pretty` boolean
- `envelope` boolean

## Response `200`

OK

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/mongodb/apis/atlas-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/atlas-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/atlas-admin-api/revisions/e37e8ef8429f/schema)
