Forum Discussion
Yash_Mudaliar
Apr 24, 2021Iron Contributor
Authentication issue while calling Graph Explorer via HTTP action
Hello,
I am running a query for exporting device compliance reports via graph explorer in the HTTP action in the playbook.
But all I am getting is the authentication issue, no matter what account I use for it.
I tried using 'Basic' and 'OAuth' both, but none of them works.
Screenshot attached. Please help.
- Thijs LecomteBronze ContributorCheck out this article, you need to use Active Directory Auth: https://gregramsey.net/2020/04/07/how-to-use-logic-apps-to-query-intune-for-device-information/
- Yash_MudaliarIron Contributor
Thijs Lecomte , Thanks for your response.
Followed that step but got the below error:
"Message\": \"Application is not authorized to perform this operation. Application must have one of the following scopes: DeviceManagementApps.Read.All, DeviceManagementApps.ReadWrite.All, DeviceManagementConfiguration.Read.All, DeviceManagementConfiguration.ReadWrite.All, DeviceManagementManagedDevices.Read.All, DeviceManagementManagedDevices.ReadWrite.All- Thijs LecomteBronze ContributorWhat permissions have you configured in your app? Did you add the permissions the error codes in mentioning?