How to get Azure AD user's last login time?
13,249
Its a shame that Azure doesn't expose last_logon
property of the User object,
Even the device entity has such property (approximateLastLogonTimeStamp
)
Author by
Admin
Updated on June 05, 2022Comments
-
Admin almost 2 years
I am using the Azure AD Graph client library for .NET to retrieve and manage user accounts. I want to be able to find out the time stamp of the last login by a user. However the object returned from the library is of type Microsoft.Azure.ActiveDirectory.GraphClient.User and does not contain any such property.
I am also unable to see any information related to login time on the Azure Management Console website. The Devices and Activity sections of a users profile are always empty, even for users i know to be active.