AI-generated Key Takeaways
-
Retrieves a list of device IDs associated with a specific user within a given enterprise.
-
Requires authorization with the
https://www.googleapis.com/auth/androidenterprise
scope. -
The request is made via a GET method to a specific endpoint, providing the enterprise and user IDs as path parameters.
-
The response includes an array of device resources, each representing a managed device linked to the user.
Retrieves the IDs of all of a user's devices.
Request
HTTP request
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
enterpriseId |
string |
The ID of the enterprise. |
userId |
string |
The ID of the user. |
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/androidenterprise |
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "androidenterprise#devicesListResponse", "device": [ devices Resource ] }
Property name | Value | Description | Notes |
---|---|---|---|
device[] |
list |
A managed device. | |
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "androidenterprise#devicesListResponse" . |