<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
How to Get a List of All Managed and Unmanaged Devices in Okta
Okta Identity Engine
Administration
Overview
There is no out-of-the-box report to list all the managed and unmanaged devices. However, in Okta Identity Engine, the device's API can be used as it can provide the device management status information.
Applies To
  • Okta API
  • Okta Identity Engine (OIE)
Solution

It is necessary to include "expand=user" in the Devices API in order for it to return the device management status:

  • /api/v1/devices?expand=user

For devices API, if a value for the limit is not specified, the maximum (200) is used as a default. There might be a timeout error with the default limit:

{
"errorCode": "Request is running beyond the maximum permitted time; terminated. interceptor=CACHE startTime=1681970528867 maxRequestTime=5000",
"errorSummary": "Request timed out",
"errorLink": "Request is running beyond the maximum permitted time; terminated. interceptor=CACHE startTime=1681970528867 maxRequestTime=5000",
"errorId": "oaed_C9nP7dTSeQ96UQBO3K1w",
"errorCauses": []
}


To circumvent this issue, the limit number can be decreased to 100 or 50:

  • /api/v1/devices?expand=user&limit=50
 

Related References

Loading
How to Get a List of All Managed and Unmanaged Devices in Okta