Tag not monitored by Microsoft.
No endpoint analytics data returned from beta API request
Our application meets all conditions listed in the article https://learn.microsoft.com/en-us/graph/api/intune-devices-userexperienceanalyticsbaseline-list?view=graph-rest-beta#prerequisites
Service Principal ID: d3d1d6c1-c1fe-4133-8917-760dc3c27990
Tenant ID: 22bc0609-533a-4367-8309-6381f6aba89d
When I try to get the list of baselines, Graph API returns an empty list:
GET https://graph.microsoft.com/beta/deviceManagement/userExperienceAnalyticsBaselines
Response:
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/userExperienceAnalyticsBaselines",
"value": []
}
But when I login to MEM and go to Reports -> Endpoint analytics it returns following response for similar request:
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/userExperienceAnalyticsBaselines",
"value": [
{
"createdDateTime": "0001-01-01T00:00:00Z",
"displayName": "Commercial median baselines",
"isBuiltIn": true,
"id": "ffffffff-ffff-ffff-ffff-ffffffffffff"
}
]
}
I tried to add a custom baseline, after that the List query fails:
GET https://graph.microsoft.com/beta/deviceManagement/userExperienceAnalyticsBaselines
Response:
{
"error": {
"code": "InternalServerError",
"message": "{\r\n \"_version\": 3,\r\n \"Message\": \"An internal server error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 04065486-0f80-4e9d-8700-4e1bfb6a46d5 - Url: https://fef.amsua0102.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/userExperienceAnalyticsBaselines?api-version=5021-09-17&$select=createdDateTime%2cdisplayName%2cisBuiltIn%2cid\",\r\n \"CustomApiErrorPhrase\": \"\",\r\n \"RetryAfter\": null,\r\n \"ErrorSourceService\": \"\",\r\n \"HttpHeaders\": \"{}\"\r\n}",
"innerError": {
"date": "2021-12-14T08:59:37",
"request-id": "04065486-0f80-4e9d-8700-4e1bfb6a46d5",
"client-request-id": "04065486-0f80-4e9d-8700-4e1bfb6a46d5"
}
}
}
"api-version=5021-09-17" seems strange
But obtaining the custom baseline by id works fine:
Response:
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/userExperienceAnalyticsBaselines/$entity",
"createdDateTime": "2021-12-14T08:32:52.1890217Z",
"displayName": "Test",
"isBuiltIn": false,
"id": "3e7c0f17-3148-494f-9c40-a314c83b8371"
}