Hi,
I've been trying to access the intune data warehouse API. I can get the basic metadata, but not the different entities/collections.
I authenticate via Oauth2 and an app registration that has all the required application API permissions (that I found here: https://learn.microsoft.com/en-gb/mem/intune/developer/intune-graph-apis?WT.mc_id=Portal-Microsoft_AAD_RegisteredApps#intune-permission-scopes , plus the get_data_warehouse permission). I also set 'Allow access to unlicensed admins' to yes in Intune.
This is the error I recieve when calling, for example, ' https://fef.msub05.manage.microsoft.com/ReportingService/DataWarehouseFEService/devices?api-version=v1.0 ' :
{
"ErrorCode":"Forbidden",
"Message":"{\r\n \"_version\": 3,\r\n \"Message\": \"An error has occurred -
Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 3562bae1-93c2-471a-abc8-58d54a74629d -
Url: https://fef.msub05.manage.microsoft.com/ReportingService/DataWarehouseFEService/devices?api-version=v1.0\",\r\n
\"CustomApiErrorPhrase\": \"\",\r\n \"RetryAfter\": null,\r\n \"ErrorSourceService\": \"\",\r\n \"HttpHeaders\":
\"{\\\"WWW-Authenticate\\\":\\\"Bearer realm=\\\\\\\"urn:intune:service,b0ab6c73-f703-4a4e-85e4-58016453cfa7,3e9c57b9-808d-4aa0-9500
-4b2d369279e7\\\\\\\"\\\"}\"\r\n}",
"Target":null,
"Details":null,
"InnerError":null,
"InstanceAnnotations":[]
}