Get-MgUser have no value for AccountEnabled and UserType

Alex You 25 Reputation points
2023-06-29T03:05:26.4333333+00:00

Get-MgUser have no value for AccountEnabled and UserType

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

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2023-06-29T04:46:00.22+00:00

    Try running the follow PowerShell:

    Get-MgUser -Property Id, DisplayName, UserPrincipalName, AccountEnabled | select Id, DisplayName, UserPrincipalName, AccountEnabled
    

    Cited from https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1250


    If this is helpful please accept answer.

    7 people found this answer helpful.

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.