Forum Discussion
JakobRohde
Sep 22, 2017Iron Contributor
List all users' last login date
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 ne...
Robert Bollinger
May 02, 2020Brass Contributor
Ok that worked! Thanks for your assistance. Now how can i see all the users in the tenant? I am testing with my own tenant which only has about 20 users, so can i assume that if i run the above query on a larger tenant that it will just return all users?
Also, How long does the logging go back for ? is the standard Windows Azure 90 Days? Can i access Microsoft Graph using Excel?
Thanks,
Robert
Thijs Lecomte
May 02, 2020Bronze Contributor
You could use a for each loop to check all the users in the tenant.
If you are new to Microsoft Graph, I recommend reading this article to learn more about it:
https://developer.microsoft.com/en-us/graph/blogs/announcing-30-days-of-microsoft-graph-blog-series/
If you are new to Microsoft Graph, I recommend reading this article to learn more about it:
https://developer.microsoft.com/en-us/graph/blogs/announcing-30-days-of-microsoft-graph-blog-series/