Missing data in v1.0 calls

asked 2021-11-15T11:23:01.52+00:00
Glenn Evans 1 Reputation point

(get-mguser -userid <userid>).AccountEnabled
gives blank output on v1.0 profile. Only works in beta

Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
724 questions
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2022-03-15T17:19:41.267+00:00
    JanardhanaVedham-MSFT 3,391 Reputation points

    Hi @Glenn Evans ,

    I could able to replicate this issue where AccountEnabled property is returing the data in response with Microsoft Graph Powershell Beta SDK but not while using with Powershell V1.0 SDK. Moreover I have also tested List Users microsoft graph API and AccountEnabled property is being fetched correctly in V1.0 as expected (as you can see in the below screenshot).

    Hence AccountEnabled property is not returning the data only with Microsoft Graph Powershell V1.0 SDK and hence Github SDK support team needs to look into this and you can raise a new issue with Github using this link: https://github.com/microsoftgraph/msgraph-sdk-powershell/issues for thier analysis and resolution.



    Get-MgUser -Top 3 | Select ID, DisplayName, Mail, UserPrincipalName,AccountEnabled  

    Example output from Microsoft Graph Powershell Beta SDK :

    Example output from Microsoft Graph Powershell V.0 SDK :

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


    No comments