jarlei | 2024-10-22 23:29:00 UTC | #1
Hello Folks,
We have an App that performs a transfer of an open messaging interaction that is with an agent to a queue and uses an OAuth Grant Types=Client Credentials that has a role with the permission Conversation > Communication > blindTransfer
The API /api/v2/conversations/messages/{conversationId}/participants/{participantId}/replace, has the permission: conversation:communication:blindTransfer as Required Permissions
Even so, when making the request with the token obtained via Genesys Cloud OAuth, mentioned above, I get the return message informing me that I am not authorized for the request:
{ "message": "Access to Conversation {id} is forbidden.", "code": "not.authorized", "status": 403, "messageWithParams": "Access to {type} {id} is forbidden.", ... }
What could be going wrong? Since the OAuth Grant Types=Client Credentials has auto-authorized for the everything scope.
Thanks in advance
Járlei
Jerome.Saint-Marc | 2024-10-23 14:45:12 UTC | #2
Hello,
I was able to reproduce your scenario, starting from an OAuth Client/Assigned Role with Conversation > Communication > blindTransfer permission only.
You are missing the Conversation > Communication > Transfer permission. That made sense when I read the description: Transfer other users' conversations As the OAuth Client Credentials Grant client is not a participant in the conversation you are trying to transfer.
Regards,
jarlei | 2024-10-23 18:55:30 UTC | #3
Jerome.Saint-Marc, post:2, topic:30010
I was able to reproduce your scenario, starting from an OAuth Client/Assigned Role with Conversation > Communication > blindTransfer permission only.
You are missing the Conversation > Communication > Transfer permission. That made sense when I read the description: Transfer other users' conversations As the OAuth Client Credentials Grant client is not a participant in the conversation you are trying to transfe
Thx a lot @Jerome.Saint-Marc
Tested and it worked, thank you very much. Maybe it would be a good idea to add this permission to the API prerequisites.
system | 2024-11-22 18:56:31 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 30010