Hi Judy -
We do this on a regular basis for my team. We pull data from the/api/v2/users and expand on the dateLastLogin value as a starting point. We take that data and import it into Excel for further analysis. Then we filter the records for accounts that have either never logged in or haven't logged in for the past 30 days and compare that against our HRIS system, which is the source of truth to determine employment status.
Here's a couple of the lessons we've learned along the way. You're likely aware of these, but I wanted to share for others who might look at this thread. :)
1) You'll get likely get some outliers in the data. For example, the president of my company never log into Genesys; he just cares if his desk phone is capable of making/receiving calls, so he's never in the UI.
2) If your accounts have DIDs on them, you'll probably want to make sure you reclaim those before deactivating the account or else things can get weird.
3) Make sure any dashboards referencing the user get updated prior to deactivating the account or the dashboard might start throwing errors.
I hope this helps!
------------------------------
Cory King
IT Lead
IGS Energy
------------------------------