userPrincipleName empty in GET my profile request

ShireenLan 5 Reputation points
2024-03-03T23:01:42.7533333+00:00

no_userPrincipleName

no_mail_no_userPrincipleName

Description

  • For a few weeks the userPrincipleName field has been empty in the GET my profile request response.
  • This occurs in the graph explorer (see screenshot) or when using the graph SDK in javascript.
  • I have logged out and back in and nothing fixes it.
  • The mail field was previously populated with my email but a week ago it became empty too.
  • I don't have this issue with my other microsoft accounts.

Steps to Reproduce

  1. Sign into [shireenlannister.98@gmail.com].
  2. Perform a GET my profile request on the graph explorer.

Expected behavior:

The userPrincipleName field should contain "[shireenlannister.98@gmail.com]".

Actual behavior:

The userPrincipleName is empty.

Additional Context

I have searched the internet and this shouldn't occur. For example, this post.

Usage Information

{
    "client-request-id": "9b2b64a2-9bd0-cb07-2797-4d8978371746",
    "content-type": "application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8",
    "request-id": "0ef42f0c-8f3e-4aad-84a3-7628c6efc066"
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,005 questions
{count} vote

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.