/mcpAdding Office 365 External Service Unity Connection 12.5(1) SU2 and later supports OAuth2 web authentication mode for configuring Unified Messaging with Office 365 service. For using OAuth2 web authentication mode for configuring Unified Messaging, you must create and register an application on Microsoft Azure portal corresponding to the Unified Messaging Service. After registering the application, you will get the values of Application (Client) ID, Directory ID and Client Secret on Azure portal. With Unity Connection 11.5(1) SU9 and later, two new fields, AdAuthenticationEndpoint and ResourceURI are introduced in this API. These fields are auto populated with default values which can be modified according to required Active Directory. For more information on configuring Unified Messaging with OAuth2 authentication mode, see Task List for Configuring Unified Messaging section of "Configuring Unified Messaging" chapter in Unified Messaging Guide for Cisco Unity Connection Release 12.x guide available at https://www.cisco.com/c/en/us/td/docs/ voice_ip_comm/connection/12x/unified_messaging/b_12xcucumgx.html. The following is an example of the POST request that adds the Office 365 Unified Messaging Service: https://<connection_server>/vmrest/externalservices The request parameters will depend upon the information given by you. <ExternalService> <DisplayName>OFC_Service</DisplayName> <IsEnabled>true</IsEnabled> <ExchDoAutodiscover>true</ExchDoAutodiscover> <ExchOrgDomain>domain.com</ExchOrgDomain> <SupportsCalendarCapability>true</SupportsCalendarCapability> <ServiceAlias>admin</ServiceAlias> <SupportsCalendarCapability>true</SupportsCalendarCapability> <SupportsTtsOfEmailCapability>true</SupportsTtsOfEmailCapability> <SupportsMeetingCapability>false</SupportsMeetingCapability> <ValidateServerCertificate>false</ValidateServerCertificate> <UseServiceCredentials>true</UseServiceCredentials> <AuthenticationMode>4</AuthenticationMode> <ServicePassword>password123</ServicePassword> <ServerType>5</ServerType> <ClientId>d64ea56b-1d60-47c7-a26d-7bcbee3a09c3</ClientId> <ClientSecret> </ClientSecret> <DirectoryID>cafae64a-ffb2-4585-8c11-2d86aa8b3bf5</DirectoryID> <AdAuthenticationEndpoint>https://login.microsoftonline.com</AdAuthenticationEndpoint> <ResourceURI>https://outlook.office365.com</ResourceURI></ExternalService> Response Code: 201 The following are the list of mandatory parameters required to create a Unified Messaging Service: • Display Name: The display name of the unified messaging service • Service Alias: The administrator account name of active directory • Service Password: The administrator account password of active directory • Server Type: The type of unified messaging service account. The value of Server Type for Office 365 is 5 • ExchOrgDomain: The domain name of hosted exchange server • ExchDoAutodiscover: The Auto Discovery flag that should always be true for Office 365 Cisco Unity Connection Provisioning Interface (CUPI) API 621 Cisco Unity Connection Provisioning Interface (CUPI) API for Unified Messaging Adding Office 365 External Service