Forum Discussion
rockypabillore
Mar 18, 2021Brass Contributor
Exporting "Device Actions" via Graph API
Alright, so first of all, the scope of this post is to figure out how to export the Device Actions logs via Graph API.
I know you can export this manually, but it does not export the WHOLE log. The main use case for this is pushing out the ProtectedWipes to devices, and we want to ensure the device status goes from "Pending" to "Complete".
If I can get the API for this, I can get a flow to check for the when the device status becomes Complete, we can for sure know that the wipe has been completed. What do you guys think?
When searching from the Reference Doc, I didn't see anything about the Monitoring piece.
- BraulioCulcayBrass ContributorI think you may be able to use this: https://graph.microsoft.com/beta/deviceManagement/remoteActionAudits
If you need to filter the data further you can use the OData Query Parameters to do so.
Below are links to Microsoft Docs around Remote Action Audits & OData Query parameters.
https://docs.microsoft.com/en-us/graph/api/intune-devices-remoteactionaudit-get?view=graph-rest-beta
https://docs.microsoft.com/en-us/graph/query-parameters