Automating RBAC Audits for High-Turnover BPO Environments

I am a Performance dashboard power user and I am helping our operations team with an audit problem. We are a large BPO and we have a very high turnover rate. We are finding that many agents who have left the company still have active roles and permissions in our Genesys Cloud organization because the supervisors forget to de-provision them. I want to build a dashboard that shows me any user who has not logged in for more than thirty days but still has ‘Premium’ roles assigned. Is there an API endpoint that provides the ‘Last Login’ date for all users in a single request?

Hello. I am an analyst at a five thousand agent BPO and we deal with this every week. There is no single API endpoint that gives you the last login date for every user in a bulk request. You have to use the /api/v2/analytics/users/details/query to see the presence history for each user. It is very expensive to run for five thousand people. We built a Python script that runs every Sunday, pulls the data in batches, and generates a CSV report for our supervisors. It is the only way to keep our license costs under control.

I am a migration specialist and I have seen this issue in every large organization I have worked with. Chl79 is right about the analytics query. However, if you are looking for a more real-time solution, you should use the ‘Audit API’ to track ‘User Login’ events. You can store these events in a database and then your dashboard can just query your database to find the inactive users. It is much faster than hitting the Genesys Cloud API every time you want to see the report.