---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / updateUser

# Function: updateUser()

> **updateUser**(`client`, `userId`, `changes`): `Promise`\<\{ \}\>

Defined in: [packages/b2c-tooling-sdk/src/clients/am-api.ts:364](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/clients/am-api.ts#L364)

Updates an existing user.

## Parameters

### client

[`AccountManagerUsersClient`](../type-aliases/AccountManagerUsersClient.md)

Account Manager Users client

### userId

`string`

User ID

### changes

Changes to apply

## Returns

`Promise`\<\{ \}\>

Updated user

## Throws

Error if request fails
