---
title: "Update user access to Rudder"
method: POST
path: "/usermanagement/update/{username}"
tags: ["User management"]
---

# Update user access to Rudder

`POST /usermanagement/update/{username}`

Rename, change password (pre-hashed or not) and change permission of an user. If a parameter is empty, it will be ignored.

## Path parameters

- `username` string, required

## Request body

- UserFile
  - `username` string, required — A new username or an empty string to ignore the update of username.
  - `password` string, required — This password will be hashed for you if the `isPreHashed` is set on false. Empty string means that no update is requested.
  - `permissions` string[], required — Roles or authorizations
  - `isPreHashed` false | true, required — If you want to provide hashed password set this property to `true` otherwise we will hash the plain password and store the hash

## Response `200`

Updated

- object
  - `result` 'success' | 'error', required — Result of the request
  - `action` 'updateUser', required — The id of the action
  - `data` object, required
    - `updatedUser` object, required
      - `username` string, required — Given username
      - `password` string, required — Given password, empty means no update was made
      - `permissions` string[], required — Given user permissions

---

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