I actually got a similar request today and ended up trying Genesys CLI which does make exports quite easy.
I could use the following command to export all inactive users to a JSON, which I then imported to an Excel sheet
gc --profile profilename users list --state inactive --autopaginate > .\export.json
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
------------------------------
Original Message:
Sent: 08-31-2023 06:00
From: Jan Heinonen
Subject: People Directory Bulk Export
Hi Reuben,
First thing that comes to mind is to use get /api/v2/users?pageSize=100&pageNumber=1&state=inactive to get a list of all inactive users, and then use the IDs from that result for the delete action.
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
------------------------------