Stefan_Eyckmans | 2020-01-03 14:46:01 UTC | #1
Hi,
We are using the .net SDK to interact with purecloud. we use the SDK for a desktop app where users logon through implicit grant and also for an app running serverside where we use client credentials.
we implemented a new feature where the serverside app was able to sent emails through ConversationsApi.PostConversationsEmails. We tested this on 20/12/2019 and the functionality was working! We were able to send an outbound email through a queue in purecloud using the serverside app (and thus client credentials). Yesterday evening (02/01/2020 17:15h belgian time) it was still working, but this morning (03/01/2020 9:30h belgian time) we got error:
Error calling PostConversationsEmails: {"status":400,"code":"not.a.user","message":"This request requires a user context. Client credentials cannot be used for requests to this resource."}
I did some reading and I found on this forum that the ConversationAPI cannot be used with client credentials since a user context is needed, but we had it working before. Also we still have another fucntionality got get email details (ConversationsApi.GetConversationsEmailMessage) which is currently still working serverside.
I noticed on 18/12/2019 there was a new release of purecloud which introduces scopes to the API's, could this have had an efect? I added the scope "everything" to the client credentials we use, but this didn't solve the issue.
We have a workaround for the email sending, but we changed nothing internally and suddenly a working fucntionality isn't working anymore so I would like to understand what happened.
many thanks for any input.
kr,
Stefan
tim.smith | 2020-01-03 15:22:40 UTC | #2
See the announcement about this made on 11/19/2019:
https://developer.mypurecloud.com/forum/t/bug-fix-outbound-emails-on-behalf-of-queue-can-be-created-by-users-only/6395/2
Stefan_Eyckmans | 2020-01-03 15:34:44 UTC | #3
thanks for the quick reply!!
Stefan_Eyckmans | 2020-01-03 15:49:12 UTC | #4
@tim.smith you have any idea why GetConversationsEmailMessage is working with client credentials? I am a bit afraid we are going to put code into production which is not intended by design and will be removed later on... .
anon39326996 | 2020-01-03 16:26:03 UTC | #5
We are cautious when introducing any changes that could be disruptive. See our change management policy here: https://developer.mypurecloud.com/api/rest/changemanagement.html
That said, there are no plans to change GetConversationsEmailMessage so it stops working with client credentials.
system | 2020-02-03 16:26:04 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 6818