Skip to content

Latest commit

 

History

History
123 lines (97 loc) · 4.14 KB

File metadata and controls

123 lines (97 loc) · 4.14 KB
title List cloudPCs for user
description List the cloudPC devices that are attributed to the signed-in user.
author sentry-cy
ms.localizationpriority medium
ms.subservice cloud-pc
doc_type apiPageType
ms.date 09/30/2025

List cloudPCs for user

Namespace: microsoft.graph

List the cloudPC devices that are attributed to the signed-in user.

Note

This operation returns only the following properties: id, displayName, imageDisplayName, servicePlanId, servicePlanName, servicePlanType, lastModifiedDateTime, aadDeviceId, gracePeriodEndDateTime, provisioningType.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

HTTP request

GET /me/cloudPCs

Optional query parameters

This method supports the $select OData query parameter to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of cloudPC objects in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/v1.0/me/cloudPCs

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
    {
      "@odata.type": "#microsoft.graph.cloudPC",
      "aadDeviceId": "f5ff445f-7488-40f8-8ab9-ee784a9c1f33",
      "id": "662009bc-7732-4f6f-8726-25883518ffff",
      "displayName": "Demo-1",
      "imageDisplayName": "Windows-10 19h1-evd",
      "servicePlanId": "dbb9148c-ff83-4a4c-8d7f-28752e93ffff",
      "servicePlanName": "lite",
      "servicePlanType": "enterprise",
      "lastModifiedDateTime": "2020-11-03T10:29:57Z",
      "gracePeriodEndDateTime": "2020-11-01T20:00:34Z",
      "provisioningType": "dedicated"
    }
  ]
}