Intune Data warehouse error

Timo De Grande 0 Reputation points
2024-03-26T15:06:22.9066667+00:00

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":[]
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
Microsoft Intune Reporting
Microsoft Intune Reporting
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Reporting: The process of giving an account of something that has been observed, heard, done, or investigated.
54 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,336 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 42,961 Reputation points Microsoft Vendor
    2024-03-27T01:57:39.1366667+00:00

    @Timo De Grande, Thanks for posting in Q&A. From the error message, it shows forbidden which means permission issue. Please check if the permissions in the following link are also granted. If not, grant them and see if it is working.

    https://learn.microsoft.com/en-us/mem/intune/developer/reports-proc-data-rest#grant-the-client-app-access-to-the-microsoft-intune-api

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.