Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  AgentUI - API and CLI give error configuring auto answer

    Posted 10-07-2024 23:56

    Hello.  I'm seeing an odd error message when attempting to set autoanswer using CLI, API Explorer, or Data Action.

    Seems simple enough...but that explicit permission does not exist.  agentUI > * > exists and is present on one or more of my assigned roles.  agentUI > * > view exists and is also present on one or more of my assigned roles.  Same is true with the CLI profile.  Can anyone tell me why I'm hanging up here?  Thanks.


    #API/Integrations

    ------------------------------
    Vikki Papesh
    Sr. Genesys Cloud Developer II
    Tandem Diabetes Care, Inc.
    ------------------------------


  • 2.  RE: AgentUI - API and CLI give error configuring auto answer

    Posted 10-08-2024 05:48

    Hello Vikki,

    Do you have the permissions for the same division as the agent your trying to view?

    Which API are you using when you get the error? I assume you're viewing something from the error message and not trying to change a setting.



    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------



  • 3.  RE: AgentUI - API and CLI give error configuring auto answer

    Posted 10-08-2024 11:11

    I tried to modify my own account, and had the same result.  Thank you for the suggestion!



    ------------------------------
    Vikki Papesh
    Sr. Genesys Cloud Developer II
    Tandem Diabetes Care, Inc.
    ------------------------------



  • 4.  RE: AgentUI - API and CLI give error configuring auto answer

    GENESYS
    Posted 10-08-2024 15:05

    Hello Vikki,

    Are running this API call on an account with admin privileges? Are any of your colleagues seeing this error code on their end? If so, you might need to open a case with Customer Care to have our Dev team look into this.



    ------------------------------
    Jason Kleitz
    Genesys - Employees
    ------------------------------



  • 5.  RE: AgentUI - API and CLI give error configuring auto answer

    Posted 10-08-2024 15:09

    Yes, my colleague is receiving the same error, and we're both assigned all the admin roles and permissions available in GC.  I'll open a case, thank you!



    ------------------------------
    Vikki Papesh
    Sr. Genesys Cloud Developer II
    Tandem Diabetes Care, Inc.
    ------------------------------



  • 6.  RE: AgentUI - API and CLI give error configuring auto answer

    GENESYS
    Posted 10-08-2024 16:01

    Interesting. Thank you for posting a reply. Please share the case number and or what Customer Care is able to report back on their investigations. I'd love to know what the issue was!



    ------------------------------
    Jason Kleitz
    Genesys - Employees
    ------------------------------



  • 7.  RE: AgentUI - API and CLI give error configuring auto answer

    Posted 10-08-2024 16:16

    Case # 003584120.  I'll post back here when I have more info.  Thanks!



    ------------------------------
    Vikki Papesh
    Sr. Genesys Cloud Developer II
    Tandem Diabetes Care, Inc.
    ------------------------------



  • 8.  RE: AgentUI - API and CLI give error configuring auto answer
    Best Answer

    GENESYS
    Posted 10-09-2024 09:46

    Hi Vikki,

    The Genesys Cloud API and CLI do not look at the permissions assigned to your user account.  Instead they look at the permissions assigned to the role(s) of the OAuth client that you are using.  To make the API or CLI requests you most likely created the Client Credentials OAuth client in Admin->OAuth.  When you were defining that OAuth client you had to select roles to assign to that OAuth client giving it permissions to make the API or CLI requests you would be calling.  My guess is that you haven't assigned a role to that OAuth client that has the AgentUI->agents->view permission.

    When I'm developing a project, I usually create a custom Role and assign the permissions to the API(s) that my project will be calling and then I assign that custom Role to the OAuth client.  That way I have a single Role that contains all the permissions my project needs.

    I hope that helps.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 9.  RE: AgentUI - API and CLI give error configuring auto answer

    Posted 10-09-2024 11:23
    Edited by Vikki Papesh 10-09-2024 11:24

    Thank you, Jim.  I created a role for CLI that provides a very broad swath of administrative permissions, since that is its primary role.  I have the same roles and more assigned to my account that I use to log into API explorer.  And in our DEV org, I have every permission available to assign.  It should have worked via API Explorer, it should have worked via CLI, and it should have worked in our DEV org even if the oAuth integration used for the PROD data action wasn't sufficient.  

    However, it turns out that the API was inserted into the release prematurely, as the permission agentUI > agents > view that it requires have not yet made it into the product.  I'll need to pause my project until the permissions make it into the release, hopefully soon.



    ------------------------------
    Vikki Papesh
    Sr. Genesys Cloud Developer II
    Tandem Diabetes Care, Inc.
    ------------------------------



Need Help finding something?

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