---
title: "Update user"
method: PUT
path: "/2/drive/{drive_id}/users/{user_id}"
tags: ["Drive > Users"]
---

# Update user

`PUT /2/drive/{drive_id}/users/{user_id}`

Update an existing user resource

## Path parameters

- `drive_id` integer, required
- `user_id` integer, required

## Request body

- object
  - `name` string — Name of the resource `{name}`
  - `role` 'admin' | 'user' — Administration level of the user.<note><strong>admin</strong>: Administrator of the drive, can manage the drive (settings, invitations and users) and the files.</note><note><strong>user</strong>: Internal user can invite user and manage the files of his private directory and other directories with manage file access.</note>

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `409` — Conflict
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
