it is so weird that ms doesn't has this. report won't give granular way then you can create with Powershell.
AAD get-azureaduser get lastlogin time
Arif Usman
421
Reputation points
folks,
i don't see last login time attributes in get-azureaduser. I am trying to create simple query
get-azureaduser -all $true | Where-Object {$_.AccountEnabled -eq 'True' } |Select GivenName , Surname,mail
but couldn't find lastlogin time. need you guys expertise here...
thanks
2 answers
Sort by: Newest
-
-
Vasil Michev 97,076 Reputation points MVP
2020-11-02T16:22:40.797+00:00 There's simply no such attribute mate. The only way to see something like "last login time" currently is to crawl the audit logs: https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/concept-sign-ins