Hi,
I need to retrieve transcription for a conversation and I am able to get the same using URL provided using the following API:
{{GENESYS_CLOUD_HOST}}/api/v2/speechandtextanalytics/conversations/{coversationId}/communications/{communicationId}/transcripturl
I am using Client Credentials OAuth Client with Role having provided access to a SINGLE Division and Role has all relevant permissions (all of Conversation Permissions, all of SpeechAnalytics permissions plus others).
This works perfectly fine as long as the Conversation has Architect flows from current Division. The moment, Conversation has flows from multiple divisions, call to this API is throwing following error:
{
"message": "An error has occurred, please contact support. Message: Forbidden: The user <OAuthClientId> from home OrganizationId <OrgId> do not have access to the conversation <Conversation Id>".
"code": "forbidden",
"status": 403,
"messageWithParams": "An error has occurred, please contact support. Message {message}",
"messageParams": {
"message": "Forbidden: The user <OAuthClientId> from home OrganizationId <OrgId> do not have access to the conversation <Conversation Id>"
},
"contextId": "dc58dad1-314c-4793-8957-029d5d6150eb",
"details": [],
"errors": []
}
What is strange is, in order to get CommunicationId, I am calling
{{GENESYS_CLOUD_HOST}}/api/v2/analytics/conversations//details with same OAuth Client it works perfectly fine.
{
"conversationEnd": "2023-04-18T07:25:22.546Z",
"conversationId": "040605e6-89fd-44c2-b3cc-de08e21b3eba",
"conversationStart": "2023-04-18T07:23:57.015Z",
"divisionIds": [
"fc3c4e64-cb11-4b5a-a22a-6ee776387101",
"ec965aeb-2479-41ef-90f3-f0a868925765"
],
......
I even tried creating an OAuth Client, with minimal required permissions (the same set which are working perfectly fine as long as all flows are from save division) and provided Access to ALL Divisions. This too provided the same 403 error.
The last option I tried is using an OAuth Client with admin privilege for my specific BU and it worked.
Question:
- If admin Role does the trick then it is just some permissions missing. Can I know what they are? Also why doesn't the transcripturl doesnt tell what are the missing permissions like other 403 errors?