Trouble implementing MS Teams Presence Update Blueprints

I am implementing the Genesys Cloud Blueprint "Update the presence of a Microsoft Teams user based upon Genesys Cloud user presence update" from here: https://developer.genesys.cloud/blueprints/update-ms-teams-user-presence-blueprint/

However, it is not working.

The "Find Teams User Id (Multiple externalIds)" Data Action is working fine and retrieving the Teams User ID imported by SCIM Integration.

When I try to test the "MS Teams Graph Authentication (Presence Update) (Auth)" Data Action, the action test fails at step 7. Execute, with a "400 bad request" response with the message "The request could not be understood by the server due to malformed syntax."

When I try to test the "Update Teams User Presence" data action, the action test fails at step '4. Perform authentication' with message "There was an issue validating the credentials.".
To perform the action test I provided the following inputs:

  • user: Teams User ID provided by Find Teams User Id (Multiple externalIds)" Data Action
  • availability: Busy
  • activity: Busy

Is this Blueprint current and known to still work?

Any assistance with this issue would be appreciated.

Hello @Johno999 , the blueprint still works. It appears you have authentication issues with your GraphAPI Azure app. I'd double check the "Configure the Azure custom app" section of the blueprint to ensure it matches your setup. One thing that gets me is copying the client secret id from the Azure portal as opposed to the client secret itself.

I hope this helps,
Jason Wolfgang

Thanks very much Jaison.
Yes, I was sure to copy the secret value and not the id.
One thing that tricked me at first was step 4. 'Ensure that you copy the values from the application's Overview page's fields for later use.'. The instructions are to copy the Application (client) ID and Directory (tenant) ID, but the screenshot highlights the Application (client) ID and Object ID.

In my credential settings I followed the written instructions (Application (client) ID and Directory (tenant) ID) rather than the screenshot.

Digging further, the error message I am getting back from the web service is "Application with identifier 'xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxx' was not found in the directory 'Aaaaaaaa'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant."

So it looks like a problem with the way the app is configured in Azure.

I will organise a session with the Azure admin to go over the configuration of the app in Azure.

Thanks again,
John

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.