Forum Discussion
Arun_Joseph
Jul 13, 2021Copper Contributor
Researching for an API to get only modified managed devices in Endpoint manager (Intune)
To fetch the managed devices I'm using following the API https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1.0 Is it possible to fetch only the devices ...
- Jul 13, 2021Graph API supports the $filter URL parameter, but it requires an attribute to filter on. I do not see a "last changed" attribute that can be used for the specific API call you mentioned. There's a few timestamps, but those seem to be related to other activities happening. Perhaps one of those can be used, but I wouldn't be sure which one to be honest.
The only other option if this doesn't exist would be to custom build something. We do this in a few cases, where we leverage Azure Storage Tables to create a hash over the attributes we want to monitor for change, and use this in combination with a stored date to check if there were changes. Not ideal to be honest 😞
pvanberlo
Jul 13, 2021Steel Contributor
Graph API supports the $filter URL parameter, but it requires an attribute to filter on. I do not see a "last changed" attribute that can be used for the specific API call you mentioned. There's a few timestamps, but those seem to be related to other activities happening. Perhaps one of those can be used, but I wouldn't be sure which one to be honest.
The only other option if this doesn't exist would be to custom build something. We do this in a few cases, where we leverage Azure Storage Tables to create a hash over the attributes we want to monitor for change, and use this in combination with a stored date to check if there were changes. Not ideal to be honest 😞
The only other option if this doesn't exist would be to custom build something. We do this in a few cases, where we leverage Azure Storage Tables to create a hash over the attributes we want to monitor for change, and use this in combination with a stored date to check if there were changes. Not ideal to be honest 😞