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

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

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

List labs for the user.

## Path parameters

- `userName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK

- ListLabsResponse — Lists the labs owned by a user
  - `labs` LabDetails[] — List of all the labs
    - `name` string — Name of the lab
    - `provisioningState` string — The provisioning state of the lab.
    - `id` string — The Id of the lab.
    - `usageQuota` string, duration — The maximum duration a user can use a VM in this lab.

## Other responses

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