logo
search
Others

Why OneDrive Reports Show User IDs Instead of Email Addresses

Natalie TaylorNatalie Taylor Sep 27, 2026 869 views

Question details

Users need to understand why administrative reports return an alphanumeric user ID instead of an email address in the User Principal Name field and how to resolve it.

Fix OneDrive Reports Showing User IDs Instead of Email Addresses
Product
Microsoft 365
Device & OS
not provided
Scenario
Generating Microsoft 365 usage reports, OneDrive activity reports, or Power BI reports using PowerShell or Graph API.
Observed behavior
The reports display a unique user ID instead of the expected email address in the User Principal Name (UPN) field.
Before you start

Ensure you have global administrator or reports reader permissions in Microsoft 365, and confirm you have access to Microsoft Graph or PowerShell to run directory queries.

Solution 1Recommended

Map the User ID to a User Principal Name

Query your Azure Active Directory to map the returned user ID back to the corresponding email address.

Microsoft sometimes updates its reporting schema for privacy or performance reasons, which can result in user IDs being displayed instead of email addresses. You can resolve this by querying the directory using the ID.

1
Identify the User ID

Open your OneDrive or Microsoft 365 activity report and locate the specific alphanumeric user ID shown in the User Principal Name field.

2
Open PowerShell or Graph Explorer

Launch PowerShell as an administrator or open the Microsoft Graph Explorer tool in your web browser.

3
Query Directory Information

Run a directory query using the copied user ID to retrieve the specific user's object details from your organization's directory.

4
Extract the Email Address

Look for the 'UserPrincipalName' property in the returned query response to find the correct email address associated with that user ID.

Map the User ID to a User Principal Name
Tip: You can automate this mapping process by adding an extra directory query step inside your PowerShell script before exporting the final report.
Free Microsoft Office alternative

Streamline Your Daily Tasks with WPS Office

While managing Microsoft 365 administrative reports requires complex PowerShell scripting and directory mapping, creating and editing your daily documents shouldn't be difficult. WPS Office offers a free, lightweight, and user-friendly alternative for all your productivity needs.

  1. 1. Download WPS Office: Visit the official WPS website and download the installation package for your operating system.
  2. 2. Install the Software: Run the downloaded installer and follow the on-screen instructions to complete the setup.
  3. 3. Open Your Documents: Launch WPS Office and effortlessly open your existing Microsoft Word, Excel, or PowerPoint files without losing any formatting.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptx.Lightweight design that installs quickly and runs smoothly on older devices.Familiar tabbed user interface ensuring a seamless migration from Microsoft Office.Completely free to use with robust built-in PDF editing tools.
QA img-9

Frequently Asked Questions

Why did my Microsoft 365 report suddenly change to show User IDs?

Microsoft frequently rolls out updates to the Microsoft Graph reporting endpoint to enhance performance and protect user privacy. These updates can change the default report schema, causing the User Principal Name field to display a unique ID instead of an identifiable email address.

Can I revert the report to show email addresses directly?

If the change is due to a permanent Microsoft Graph schema update, you cannot revert it directly on the reporting endpoint. You will need to use PowerShell or Graph API to map the returned user IDs to their corresponding email addresses within your directory.

Which reports are affected by this schema change?

This behavior can impact various administrative reports, including OneDrive activity reports, Microsoft 365 usage reports, Power BI reports, and any custom PowerShell scripts relying on the Microsoft Graph reporting endpoint.