Something like this in Powershell
In folder with gc.exe (Set-Location C:\SomeFolder)
(.\gc.exe users list -a --expand="skills" | ConvertFrom-Json) | Where-Object {$_.division.name -eq "
YourDivisionName"} | Select-Object id, @{Name="division"; Expression={$_.division.name}}, email, @{Name="skills"; Expression={$_.skills.name}} | Export-Csv -Path .\division_users.csv -NoTypeInformation
CLI links to get you going:
https://developer.genesys.cloud/blog/2021-02-11-Introducing-the-CLI/ -install instructions or download link, you will need to setup OAuth in Genesys with permissions too.
https://github.com/MyPureCloud/quick-hits-cli -some handy expressions to get you started, above was just a slight variation on one posted here.
------------------------------
Anton Vroon
KiwiBank
------------------------------