Hi,
I was asked to create a csv file with all the users and their skills(proficiency) and queues. I thought i could use the CLI tools for this and format the data wit jq. I managed to do this with the following command:
gc users list --expand skills --autopaginate | jq -r '.[] | [ .name, ([.skills[].name + "(" + (.skills[].proficiency | tostring) + ")"] | join("|")) ] | @csv' > output.csv
this will result in the following csv: username,skillA(1)|skillB(5)
unfortunately it is not possible to expand queues, so i need to make an additional request for every user to get their queues.
Is it possible to add this to the above command, so i can create a csv like this: username,skillA(1)|skillB(5),queueA|queueB