Forum Discussion
nimby
Mar 24, 2020Copper Contributor
Last Logon time
Is there anyway to download via powershell the last login time for all users? Currently I'm using "Get-EXOMailboxStatistics" but this requires you to provide a username and only obtains the stats for...
VasilMichev
Mar 25, 2020MVP
Use the Graph call for the report then, it will give you the data for all users.
nimby
Mar 25, 2020Copper Contributor
I presume this would be a call to the auditLogs/signIns endpoint - but this looks like it's only in beta. Is there the same in pro?
- Robert LuckMar 26, 2020Iron Contributor
nimby You could compute the last active time based on the data available from graph endpoint.
https://docs.microsoft.com/en-us/graph/api/reportroot-getoffice365activeuserdetail?view=graph-rest-1.0