---
title: "Update user configuration"
method: PATCH
path: "/sources/{id}/users/{user_id}"
tags: ["sources", "users"]
---

# Update user configuration

`PATCH /sources/{id}/users/{user_id}`

Update one parameter at a time (one of password, permissions or roles)

## Path parameters

- `id` string, required
- `user_id` string, required

## Request body

- InfluxDBUser
  - `name` string — Unique name of the user
  - `password` string
  - `permissions` InfluxDBPermission[] — Permissions represent the entire set of permissions a InfluxDB User or InfluxDB Role may have
    - `scope` 'all' | 'database', required — Describes if the permission is for all databases or restricted to one database
    - `name` string — If the scope is database this identifies the name of the database
    - `allowed` string[], required — Allowances defines what actions a user can have on a scoped permission
  - `roles` InfluxDBRole[]
    - `name` string, required — Unique name of the role
    - `users` InfluxDBUsers
      - `users` InfluxDBUser[]
    - `permissions` InfluxDBPermission[] — Permissions represent the entire set of permissions a InfluxDB User or InfluxDB Role may have
      - `scope` 'all' | 'database', required — Describes if the permission is for all databases or restricted to one database
      - `name` string — If the scope is database this identifies the name of the database
      - `allowed` string[], required — Allowances defines what actions a user can have on a scoped permission
    - `links` object — URL relations of this role
      - `self` string, url — URI of resource.
  - `links` object — URL relations of this user
    - `self` string, url — URI of resource.

## Response `200`

Users's configuration was changed

- InfluxDBUser
  - `name` string — Unique name of the user
  - `password` string
  - `permissions` InfluxDBPermission[] — Permissions represent the entire set of permissions a InfluxDB User or InfluxDB Role may have
    - `scope` 'all' | 'database', required — Describes if the permission is for all databases or restricted to one database
    - `name` string — If the scope is database this identifies the name of the database
    - `allowed` string[], required — Allowances defines what actions a user can have on a scoped permission
  - `roles` InfluxDBRole[]
    - `name` string, required — Unique name of the role
    - `users` InfluxDBUsers
      - `users` InfluxDBUser[]
    - `permissions` InfluxDBPermission[] — Permissions represent the entire set of permissions a InfluxDB User or InfluxDB Role may have
      - `scope` 'all' | 'database', required — Describes if the permission is for all databases or restricted to one database
      - `name` string — If the scope is database this identifies the name of the database
      - `allowed` string[], required — Allowances defines what actions a user can have on a scoped permission
    - `links` object — URL relations of this role
      - `self` string, url — URI of resource.
  - `links` object — URL relations of this user
    - `self` string, url — URI of resource.

## Other responses

- `404` — Happens when trying to access a non-existent user or source.
- `default` — A processing or an unexpected error.

---

[API](https://skmtc.net/influxdata/apis/chronograf.md) · [All operations](https://skmtc.net/influxdata/apis/chronograf/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/influxdata/chronograf/versions/ce55d963b4ac/schema)
