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

# Patch a management user

`PATCH /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/patch.ts> (a function with typed inputs; its response is checked against the schema)

Use to update a management user via patch.  Fields not supplied will be left unchanged.

## Path parameters

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

## Request body

- object: Json containing the fragment of the <a href="#/~schema/ManagementUserX">managementUser</a> object to be updated.

## 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)
