---
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: ["Nodes"]
---

# 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

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

## Headers

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

## Response `200`

The request has succeeded.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/batch-batch.md) · [All operations](https://skmtc.net/azure/apis/batch-batch/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/batch-batch/revisions/8427acd8fd77/schema)
