Will Graph List User API return users with empty userPrincipalName?

Scott Jiang 21 Reputation points

Is it possible that MS Graph List User API returns users with empty or null userPrincipalName? And what would be the cases if so?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,383 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,052 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,538 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 40,141 Reputation points

    Hi @Scott Jiang


    This property is required when you create a user, and it does not return a null value.


    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Nivedipa-MSFT 2,896 Reputation points Microsoft Vendor

    It's not possible that MS Graph List User API returns users with empty or null userPrincipalName.
    userPrincipalName is required property for user.

    We have tried to create user without userPrincipalName but its showing error.



    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments