Missing data in 1.0 calls

Glenn Evans 1 Reputation point
2021-11-15T11:25:19.08+00:00

(get-mguser -userid <userid>).AccountEnabled

no output is given in v1.0 only the beta profile

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

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 37,296 Reputation points
    2021-11-16T01:49:23.053+00:00

    Hi @Glenn Evans

    This response is normal, the beta endpoint returns all attributes of the user by default, and the v1.0 endpoint hides user attributes that are not commonly used by default.


    Update:

    Yes, the beta version is only a test version and it may be modified or deleted at any time, indeed not suitable for production environments. If you want to use the v1.0 version to return all the user attributes, you can only use the $select query parameter to specify all user attribute sets. https://graph.microsoft.com/v1.0/users/{user id}?$select=id,usageLocation,state,displayName,givenName,postalCode......


    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.