Skip to content

Latest commit

 

History

History
123 lines (89 loc) · 3.31 KB

user-list-devices.md

File metadata and controls

123 lines (89 loc) · 3.31 KB
title description ms.localizationpriority author ms.reviewer ms.subservice doc_type
List user devices (deprecated)
Get a list of user devices that support Project Rome capabilities. This includes the ability to launch an app, or message or send data to an application. After you do a GET call on me/devices, pass in the ID of the device to send a command to your device.
medium
yyuank
iamut
entra-users
apiPageType

List user devices (deprecated)

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Caution

This API is deprecated and stopped returning data on September 30, 2020.

Get a list of user devices that support Project Rome capabilities. This includes the ability to launch an app, or message or send data to an application. After you do a GET call on me/devices, pass in the ID of the device to send a command to your device.

[!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/devices

Request headers

Header Value
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Accept application/json

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 response code and the user device properties in the response body.

HTTP/1.1 200 OK
{
  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#devices",
  "value": [
    {
      "name": "name",
      "id": "id",
      "status": "status",
      "platform": "platform",
      "kind": "formFactor"
    }
  ]
}

Example

This example will return the list of devices for a user. To command a device using me/devices/{id}/command, you will need to get the ID of the device that is returned.

Request

The following example shows a request.

GET me/devices
Authorization: Bearer Eaeou....
Content-Type: application/json; charset=utf-8

Response

The following example shows the response. Note: The response object shown here might be shortened for readability.

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

{
  "value": [
    {
      "Name": "JimSurface",
      "id": "6841b3db-2b55-467b-ad84-79a41a4ef665",
      "Kind": "Tablet",
      "Status": "Unknown",
      "Platform": "Windows"
    }
  ]
}