Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Export list of Divisions, Agents by Division, and Queues assigned to each agent

    Posted 07-28-2021 12:15
    Hi everyone,

    Does anyone know a way for me to export all the agents for our organization grouped by Divisions and including all the queues each agent is a member of? I know there are some API(s) that can do that but I hear that there is a limit on the number of agents that are extracted per API call. I am looking for something much faster and easier. Would be helpful if the Performance>Agents view would allow me to add assigned queues to my view?

    Any help will be much appreciated :)

    #ArchitectureandDesign
    #PlatformAdministration
    #SystemAdministration

    ------------------------------
    Outi Cornette
    Humana Inc.
    ------------------------------


  • 2.  RE: Export list of Divisions, Agents by Division, and Queues assigned to each agent

    Posted 07-28-2021 12:28
    The API is the way to go, but for ease of use, the CLI is a better and repeatable way to go.  Here is a great example/recipe:  https://github.com/MyPureCloud/quick-hits-cli/tree/main/users

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Export list of Divisions, Agents by Division, and Queues assigned to each agent

    Posted 10-20-2021 13:03
    Hi, 
    Can you please give a brief overview on how to implement a API in Genesys to produce a export of agents in a Division.

    ------------------------------
    Jean Lam
    Bridgecrest Acceptance Corporation
    ------------------------------



  • 4.  RE: Export list of Divisions, Agents by Division, and Queues assigned to each agent

    GENESYS
    Posted 10-21-2021 07:32
    Hi,
    Have you already looked at the Command Line Interface (CLI)? At the link Robert provided above there are specific examples such as:
    Description
    # Get a list of all users by division and convert the data to a csv file gc users list -a --pageSize=100 | jq -c '.[] | select( .division.name == "DivisionA")' |jq -n '[inputs]'| jq -r '. | map({"id": .id, "division": .division.name, "email": .email})' | jq -r '(.[0] | keys_unsorted) as $keys | ([$keys] + map([.[ $keys[] ]])) [] | @csv'

    Further info on the CLI is at https://developer.genesys.cloud/blog/2021-06-01-cli-with-powershell/ 

    This all uses the underlying APIs so you can certainly do this via APIs. I believe you need to get the user details first which contains the Division info and then you could filter/group by Division.

    ------------------------------
    Don Huovinen
    Genesys - Employees
    ------------------------------



  • 5.  RE: Export list of Divisions, Agents by Division, and Queues assigned to each agent

    Posted 12-15-2023 07:11

    are there any clear step by step instructions on how to do this as i will need to be moving large amounts of data from a Dev customer environment into a Production environment and it would be far simpler to do it this way.



    ------------------------------
    Richard Craig
    British Telecommunications PLC
    ------------------------------



  • 6.  RE: Export list of Divisions, Agents by Division, and Queues assigned to each agent

    GENESYS
    Posted 12-15-2023 17:12

    Hi - 

    There are examples of how to use the CLI under specific scenarios at https://github.com/MyPureCloud/quick-hits-cliI 

    I would recommend reviewing this GitHub repo to see if there is something that is a good match for your use case. There are also some good videos on the CLI such as https://www.youtube.com/watch?v=rb2xqZU5vNc

    Regards



    ------------------------------
    Donald Huovinen
    Genesys - Employees
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources