We are running short on licenses, so I want an efficient way to produce a list of users according to when they last logged in. This will let me create a hit list of users from whom I can remove their licenses.
I am looking for something I can run using curl ideally that churns out a list including user email, full name and last login date. Then I can email them to warn them that they are about to lose access, to give then a chance to respond.