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

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

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

Get personal preferences for a user

## Path parameters

- `userName` string, required

## Query parameters

- `api-version` string, required

## Request body

- PersonalPreferencesOperationsPayload — Represents payload for any Environment operations like get, start, stop, connect
  - `labAccountResourceId` string — Resource Id of the lab account
  - `addRemove` 'Add' | 'Remove' — Enum indicating if user is adding or removing a favorite lab
  - `labResourceId` string — Resource Id of the lab to add/remove from the favorites list

## Response `200`

OK

- GetPersonalPreferencesResponse — Represents the PersonalPreferences for the user
  - `id` string — Id to be used by the cache orchestrator
  - `favoriteLabResourceIds` string[] — Array of favorite lab resource ids

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