Dialogue Cloud

Microsoft Graph Presence Publisher (Set) Configuration

Note

Introduced in DC2023.04 as back-end service for (re)setting Teams Presence associated with a Reason-Code (see: Change Presence / Reason Code )

Extended use in DC2024.01 as back-end service for (re)setting Teams Presence during and after Wrap-Up (discharge) time ends. (see: Wrap-up Time)

For feature presence behavior comparisons and considerations see tables below Presence Behavior for AnywhereNow features.

Introduction

The Microsoft Graph Cloud Communications Presence APIs are used by AnywhereNow for two distinct Presence actions, Get Presence states of agents and Set Presence state of agents:

High Level Steps

In order to start setting or changing presence of other Microsoft Teams user accounts. There are two prerequisites, per tenant.

  1. A Microsoft Entra ID Formerly known as Azure Active Directory (or Azure AD, or AAD) App registration is needed to access the Microsoft Graph APIs.

  2. A ClientSecret is needed to authenticate the App Registration.

  3. Enable Presence Publisher for AnywhereNow

1. Microsoft Entra Id App Registration Steps

Follow the below steps to setup an App Registration in the Microsoft Entra ID portal.

  1. Navigate to: https://entra.microsoft.com/
  2. Under Applications -> App registrations create a new App registration

    1. Provide a Name for the application, for example: AnywhereNow Graph Set Presence Application

    2. Select the account type “Accounts in this organizational directory only”

    3. Click “Register”

  3. On the API permissions tab, add the following Microsoft Graph - Application permission:

  4. Since the Presence.ReadWrite.All and User.Read.All permissions needs Admin consent, click the button “Grant admin consent for <tenant>”.

    Note

    Only a tenant administrator can grant the admin consent

  5. On the Authentication tab, change “Allow public client flows” to “Yes”.

    • Click “Save”

  6. On the Overview tab, copy both the Application (client) ID and the Directory (tenant) ID

2. Client secret (renewal)

This app is authenticated with a ClientId and ClientSecret to the Graph API. The ClientSecret needs to be created separately (and periodically renewed) in the Entra ID App registration.

  1. Navigate to the Application you created in 1. Microsoft Entra Id App Registration Steps
  2. On the Client secret tab, click on New client secret:

  3. Enter a Description and set the Expires value

  4. On the next screen, copy the Value of this secret (so not the Secret ID)

Note

A new ClientSecret can be entered in OnePortal in advance, however to activate a renewed ClientSecret , a UCC service restart is required. We advice to plan this well ahead so a the restart can be scheduled for a service window suitable to you.

3. Configure the Presence Publisher

Note

Introduced in DC2023.04.

In OnePortal enable the Graph Presence Publisher by filling in the below details en switching the enable/disable toggle:

  • Tenant Id

  • Client ID

  • ClientSecret

Presence Behavior for AnywhereNow features.

The Presence Publisher is will have an effect on the call distribution experienced by your agents. Also, various AnywhereNow features will gradually be adapted or (re-)added to make use of the Presence Publisher service. For now these are:

  1. Reason Codes (as of bundle DC2023.04)

  2. Wrap-Up functionality (as of bundle DC2024.01)

Note

Beware that Teams Presence is stored in the customers tenant (not in AnywhereNow) and is also influenced by other actors like the Microsoft 365 (Outlook) calendar, machine state (locked p.c.), activity (idle = away after xx minutes), signed in on other devices (Teams on mobile) and possible other 3rd party apps (Busylight?).
We call this Native Teams Presence.

Behavior comparison tables

With Presence Publisher Enabled

With Presence Publisher Disabled