I want to get password expiry date of logged in user in c# using graph api or adal.
With this question, I know how to get the password policy and also the expiry date using PowerShell but not yet sure with C#
Get Azure Active Directory password expiry date in PowerShell
In c# Either I want to Get PasswordExpiry Date or as an Alternative LastPasswordChangedDate.
Using AD Graph API
To get this property of Azure AD user using C#, we can call the PowerShell commands directly. You can refer the code sample below to achieve the goal: