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.
Original Message:
Sent: 10-09-2024 09:46
From: Jim Crespino
Subject: AgentUI - API and CLI give error configuring auto answer
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
Original Message:
Sent: 10-08-2024 16:16
From: Vikki Papesh
Subject: AgentUI - API and CLI give error configuring auto answer
Case # 003584120. I'll post back here when I have more info. Thanks!
------------------------------
Vikki Papesh
Sr. Genesys Cloud Developer II
Tandem Diabetes Care, Inc.
Original Message:
Sent: 10-08-2024 16:00
From: Jason Kleitz
Subject: AgentUI - API and CLI give error configuring auto answer
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
Original Message:
Sent: 10-08-2024 15:09
From: Vikki Papesh
Subject: AgentUI - API and CLI give error configuring auto answer
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.
Original Message:
Sent: 10-08-2024 15:05
From: Jason Kleitz
Subject: AgentUI - API and CLI give error configuring auto answer
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
Original Message:
Sent: 10-07-2024 23:55
From: Vikki Papesh
Subject: AgentUI - API and CLI give error configuring auto answer
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.
------------------------------