---
title: "GET /providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices"
method: GET
path: "/providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices"
---

# GET /providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices

`GET /providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices`
- Auth: none declared
- TypeScript: <https://skmtc.dev/azure/apis/intune-microsoft-intune-intune/docs/providers/Microsoft.Intune/locations/:hostName/users/:userName/devices/get.ts> (a function with typed inputs; its response is checked against the schema)

Get devices for a user.

## Path parameters

- `hostName` string, required
- `userName` string, required

## Query parameters

- `api-version` string, required
- `$filter` string
- `$top` integer
- `$select` string

## Response `200`

devices as collection response

- DeviceCollection
  - `value` Device[], required
    - `id` string: Resource Id
    - `name` string: Resource name
    - `type` string: Resource type
    - `tags` object: Resource Tags
    - `location` string: Resource Location
  - `nextlink` string: Gets the URL to get the next set of results.

## Other responses

- `default`: unexpected error

---

[API](https://skmtc.dev/azure/apis/intune-microsoft-intune-intune.md) - [All operations](https://skmtc.dev/azure/apis/intune-microsoft-intune-intune/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/intune-microsoft-intune-intune/revisions/c3d7c98fd32a?raw)
