We have the customer requirement to let callers record messages in certain cases in an IVR. We are doing this by transfer to a group with enabled voicemail feature. The next requirement is, that we grab all recorded messages every hour, download them and upload them to another server via SFTP. I have written a windows service application for that and basically the how-to is not a problem, but one thing is:
When I call: VoicemailMessageEntityListing vmList = voicemailApi.GetVoicemailGroupMessages(groupId);
An exception is thrown telling me:
Error calling GetVoicemailGroupMessages: {"message":"This request requires a user context. Client credentials cannot be used for requests to this resource.","code":"bad.request","status":400,"details":[],"errors":[]}
I use OAuth with Client Credentials grant type and that's not working here. Okay. But how can my windows service authenticate as a user without any user interaction? I mean...Since there is no UI involved, I can't open any "browser control" even.
Is there any solution for this problem? It's very important for us to get this working before we are ordering further Genesys Cloud licenses for this customer. Thanks.
This message indicates that you must use one of the user-based authorization grants, meaning implicit, auth code, or saml2 bearer. You cannot use this endpoint with client credentials, so your application cannot run as a standalone service. You will need to implement one of the user-based authorization methods within a UI available to each user to authorize the app that's making these calls.
You can request new features, like allowing client credentials for additional resources, and share your use case at https://genesyscloud.ideas.aha.io/.
Thanks for your reply! So what we need, and have implemented in Engage right now, ist not possible in the cloud. I will add a feature request, but Genesys just lost a new customer
Thank you for your feedback here - we certainly want to do whatever we can to support you and your customer! Unfortunately, new feature requests cannot be logged or accepted via the Developer Forum - but I am happy to reach out to you and your Success Manager to facilitate the request. May I email you directly?