---
title: "POST /providers/Microsoft.LabServices/users/{userName}/resetPassword"
method: POST
path: "/providers/Microsoft.LabServices/users/{userName}/resetPassword"
tags: ["GlobalUsers"]
---

# POST /providers/Microsoft.LabServices/users/{userName}/resetPassword

`POST /providers/Microsoft.LabServices/users/{userName}/resetPassword`

Resets the user password on an environment This operation can take a while to complete

## Path parameters

- `userName` string, required

## Query parameters

- `api-version` string, required

## Request body

- ResetPasswordPayload — Represents the payload for resetting passwords.
  - `environmentId` string, required — The resourceId of the environment
  - `username` string — The username for which the password will be reset.
  - `password` string — The password to assign to the user specified in

## Response `200`

OK

## Other responses

- `202` — Accepted
- `default` — BadRequest

---

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