Sep 22 2017
01:51 AM
- last edited on
Jan 14 2022
05:29 PM
by
TechCommunityAP
Sep 22 2017
01:51 AM
- last edited on
Jan 14 2022
05:29 PM
by
TechCommunityAP
Is it possible, using PowerShell, to list all AAD users' last login date (no matter how they logged in)? I have found a couple of scripts that check the last mailbox login, but that is not what we need, because we also want to list unlicensed users.
Oct 26 2022 07:06 AM
Dec 16 2022 09:14 AM
Dec 18 2022 10:17 PM
The Microsoft Graph API now supports the resource property signInActivity in users end-point, this resource exposes the lastSignInDateTime property which shows the last time a user made a successful sign-in. Fetching signInActivity property requires an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission. The following request retrieves user details along with signInActivity property.
#GET Request
https://graph.microsoft.com/beta/users?$select=displayName,signInActivity
You can refer the below post to know more details about how to find and export Last login date for all Azure AD Users using PowerShell.
Dec 19 2022 03:02 AM - edited Dec 19 2022 03:03 AM
The thread that keeps on keeping on....
Here is a new page from MS on the topic with all the required information.
https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-manage-inactive-us...
Jan 30 2023 02:05 AM
Mar 24 2023 08:33 AM
Mar 29 2023 02:00 AM
i tried this script and it works very well thanks. But I have a problem the results stop after about 100 users.
Apr 17 2023 09:22 AM
Jun 16 2023 08:40 AM
Is it possible to to get a last activity date for only guest users? I have about 25k that I need to cleanup and need to determine if they have logged on in the past 90days or more.
thanks
Kevin
Aug 07 2023 12:52 PM
@Robert Luck At first glance, AdminDroid is the answer to my lastlogin prayers! Just starting to play with it now. Thanks!