---
title: "Updates the password and expiration time of a user Account on the specified Compute Node."
method: PUT
path: "/pools/{poolId}/nodes/{nodeId}/users/{userName}"
tags: ["ComputeNodes"]
---

# Updates the password and expiration time of a user Account on the specified Compute Node.

`PUT /pools/{poolId}/nodes/{nodeId}/users/{userName}`

This operation replaces of all the updatable properties of the Account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user Account on a Compute Node only when it is in the idle or running state.

## Path parameters

- `poolId` string, required
- `nodeId` string, required
- `userName` string, required

## Query parameters

- `timeout` integer
- `api-version` string, required

## Headers

- `client-request-id` string, uuid
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123

## Response `200`

The request to the Batch service was successful.

## Other responses

- `default` — The error from the Batch service.

---

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