question

StephenOBrien-5888 avatar image
0 Votes"
StephenOBrien-5888 asked StephenOBrien-5888 commented

Graph API "ownedDevices" endpoint returns old/deleted devices

As I understand it, the https://graph.microsoft.com/v1.0/users/{USER_ID}/ownedDevices API should return a list of devices owned by the user specified by the {USER_ID}. However, this endpoint returns a list of devices that includes devices which have been deleted or retired. These devices are not visible or accessible (as far as I can see) in the Endpoint Management console. Is there any way, using the Graph APIs, to get a list of active, not deleted or retired devices for a user?

Note - the "deletedDateTime" parameter for all devices is "null". If this was populated, I could at least use that to filter the devices. I'm not sure why this parameter has no value - if I can't see the devices in the Endpoint Portal, they must be deleted?

microsoft-graph-users
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Have the devices you see actually been deleted or disabled? Can you check if accountEnabled field can accomplish what you are trying todo?

0 Votes 0 ·

To the best of my knowledge, the devices have been deleted. They're not showing up anywhere in the Endpoint Manager console. When I do the API call, the accountEnabled field is set to "true" for all devices, both the deleted and active ones.

0 Votes 0 ·

0 Answers