get-MgUser (msDS-UserPasswordExpiryTimeComputed and PasswordLastSet & info) attributes

Mariusz 20 Reputation points
2023-05-08T15:51:00.84+00:00

Hi, I am searching half of the internet on how to get the attributes listed in Title above using get-mguser.

It has to be easy but I am missing something. Ideas/Pointers?

thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,052 questions
0 comments No comments
{count} votes

Accepted answer
  1. TH-4749-MSFT 3,295 Reputation points
    2023-05-08T18:54:48.9633333+00:00

    Hello Mariusz,

    The msDS-UserPasswordExpiryTimeComputed sync to Azure AD is not supported and thus will not be included in the Get-MgUser command output. Please see note in article for further details. The Info and PasswordLastSet attributes are not exposed by the Get-MgUser command. The command however does output the value for LastPaswordChangeDataTime. Please provide your feedback and suggestions on the Microsoft Graph Feedback portal.

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

    Thanks.

    0 comments No comments

0 additional answers

Sort by: Most helpful