getMailboxUsageDetails returning a ID instead of UserprincipalName and DisplayName

GiefGraphQueries@outlook.com 21 Reputation points
2021-09-06T08:35:57.287+00:00

Hi,

Very recently this query has started to output a ID instead of actual users UPN and DisplayName. This used to output the proper UPN and DisplayName.
Anybody know what this ID is and if it's able to query Exchange/Azure/M365 to get the actual UPN and DisplayName?
https://graph.microsoft.com/beta/reports/getMailboxUsageDetail(period='D7')?$format=application/json

The same result shows for different tenants.

Thanks

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Danstan Onyango 3,906 Reputation points Microsoft Employee
    2021-09-07T05:10:28.363+00:00

    This is because of Privacy changes to Microsoft 365 Usage Analytics that hide properties that identify the user. You need to disable the anonymize user data feature. Follow the steps in the screenshot below from Admin Portal.

    129716-enable-anonimity-reports.png

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. GiefGraphQueries@outlook.com 21 Reputation points
    2021-09-07T07:06:09.617+00:00

    Thank you, this solved the issue!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.