Missing data in v1.0 calls

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

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

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,020 questions
{count} votes

1 answer

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

    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.

    Example:

    183307-image.png

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

    Example output from Microsoft Graph Powershell Beta SDK :
    183315-image.png

    Example output from Microsoft Graph Powershell V.0 SDK :
    183359-image.png

    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.

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

    0 comments No comments

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.