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 |
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]
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]
GET me/devices
Header | Value |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Accept | application/json |
Don't supply a request body for this method.
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"
}
]
}
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.
The following example shows a request.
GET me/devices
Authorization: Bearer Eaeou....
Content-Type: application/json; charset=utf-8
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"
}
]
}