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
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: Most helpful
-
-
Arif Usman 421 Reputation points
2020-11-02T18:01:24.667+00:00 it is so weird that ms doesn't has this. report won't give granular way then you can create with Powershell.