---
title: "Update a management user"
method: PUT
path: "/v2/partition/{partitionId}/managementuser/{id}"
tags: ["Management User"]
---

# Update a management user

`PUT /v2/partition/{partitionId}/managementuser/{id}`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/managementuser/{id}`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/managementuser/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Use to update a management user. <span hidden>For more information on updating management users, see the <a href="managementUser.html#updateManagementUser">update Management User</a> documentation.</span>

## Path parameters

- `id` string, required
- `partitionId` string, required

## Request body

- ManagementUserX
  - `id` string
  - `username` string: users email address
  - `firstName` string
  - `lastName` string
  - `emailAddress` string: just a readonly repetition of the username
  - `mustChangePassword` boolean
  - `languageTag` 'en-US' | 'fr-CA'
  - `partitionId` string: Reference to <a href="#/~schema/PartitionX">PartitionX.id</a>
  - `roles` string[]: A list of roles that the contain the permissions of this managementUser.
  - `groupIds` string[]: Readonly and internal only, the same information is contained in the roles array in a different format

## Response `200`

Successful operation

- ManagementUserX
  - `id` string
  - `username` string: users email address
  - `firstName` string
  - `lastName` string
  - `emailAddress` string: just a readonly repetition of the username
  - `mustChangePassword` boolean
  - `languageTag` 'en-US' | 'fr-CA'
  - `partitionId` string: Reference to <a href="#/~schema/PartitionX">PartitionX.id</a>
  - `roles` string[]: A list of roles that the contain the permissions of this managementUser.
  - `groupIds` string[]: Readonly and internal only, the same information is contained in the roles array in a different format

## Other responses

- `400`: Invalid management user object
- `401`: Unauthorized
- `404`: Path Error, probably a bad partition ID or management user ID

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
