---
title: "Patch Account User"
method: PATCH
path: "/v2/partition/{partitionId}/account/{accountId}/accountuser/{userId}"
tags: ["Account User"]
---

# Patch Account User

`PATCH /v2/partition/{partitionId}/account/{accountId}/accountuser/{userId}`

## Request

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

Use to patch update an account user. <span hidden>Refer to <a href="accountUser.html#/patch-account-user">Patching an Account User</a> for more information.</span>

## Path parameters

- `accountId` string, required
- `partitionId` string, required
- `userId` string, required

## Request body

- object: Json containing the fragment of the account object to be updated.

## Response `200`

Successful operation

- AccountUserX
  - `partitionId` string: A partitionId identifies the business entity that this account is a part of. Refers to <a href="#/~schema/PartitionX">partition.id</a>
  - `accountId` string: ID of account, refers to <a href="#/~schema/Account">account.id</a>
  - `userId` string: Identifies a unique Account User.
  - `subDomain` string: Determines the branding which is used in the display of user emails and the portal. Must exist in the <a href="#/~operation/Partition/getAllSettings">Partition Settings</a> (type SUB-DOMAINS).
  - `username` string, required: The email address of the AccountUser.
  - `firstName` string, required
  - `lastName` string, required
  - `mustChangePassword` boolean: Indicates whether the user will be required to update their password upon login. This field cannot be set manually, only read out.
  - `languageTag` string: The localization setting that indicates the language of the user. Example: "en-US"
  - `id` string: The same value as the userId.

## Other responses

- `400`: Invalid AccountUserX fragment
- `401`: Unauthorized
- `404`: Partition Id or Account Id or Account User Id not found.

---

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