Configuring the connection to the Exchange server

The connection parameters to the Exchange server are used to synchronize schedules or appointments from Akuiteo into a Microsoft Outlook calendar.

The connection to the Exchange server is configured in the Administration console, from the Third-party interfaces > Exchange menu.

1 Fill in the following fields to configure the connection to the Exchange server:
Field Description
Delegated user

Fill in the login of the Exchange user to connect to the server.

If you are using Exchange 365, this user must have a delegation to have complete access over other user accounts.

Linked password Specify the password associated with the login of the Exchange user.
EWS service URL

Fill in the URL to connect to the Exchange server.

Example

https://outlook.office365.com/EWS/exchange.asmx

Exchange server version Select the Exchange server version from the drop-down list.
Maximum number of threads for synchronizing Specify a maximum number for simultaneous synchronizations.
Use impersonation

If you are using Exchange 365, check this box. Office 365 enforces a limit on the number of web service calls a given user can make. Impersonation is used to assign a role to an Exchange user and bypass this limit.

To be able to use impersonation, you must:

Delete all account delegations for the Exchange technical user

1. Download and install PowerShell.

2. From PowerShell, run the following command lines:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic –AllowRedirection This command establishes a connection to the Exchange server. The administrator's login and password are required.
Import-PSSession $Session This command gathers the commands needed to delete delegations.
foreach ($mailbox in Get-Mailbox) { Remove-MailboxPermission $mailbox.PrimarySmtpAddress -user user@domain -Accessright FullAccess -Confirm: $false}

Replace user@domain with the login of the current Akuiteo technical user who owns the delegation right.

This command deletes the delegation role for all users.

Give the impersonation right to the Exchange technical user

1. Connect to the Exchange Admin Center from the Office 365 portal.

2. Go to the Permissions > Admin Roles menu.

3. Create a new role by filling the following information:

  • Name: Application Impersonation
  • Assigned roles: Add the ApplicationImpersonation, Legal Hold and Mailbox Search roles
  • Members: Add the current Akuiteo technical user
Test user Specify an existing email address to make sure that Akuiteo can access the corresponding account using the impersonation.
Use OAUTH authentication (Exchange 365 only)

Enable or disable OAUTH authentication to connect to Exchange.

This option must be enabled if Exchange 365 is used by Akuiteo in your organization. Otherwise, it must be disabled.

Use Graph API Library

Check this box if you use the Microsoft Graph API.

For more information about Microsoft graph configuration, refer to Configuration for Microsoft Graph.

Tenant ID

This field must be specified if Use OAUTH authentication (Exchange 365 only) or Use Graph API Library is enabled.

Specify the tenant ID provided by Microsoft for the OAUTH authentication.

Client ID

This field must be specified if Use OAUTH authentication (Exchange 365 only) or Use Graph API Library is enabled.

Specify the client ID for the OAUTH authentication.

Client Secret

This field must be specified if Use OAUTH authentication (Exchange 365 only) or Use Graph API Library is enabled.

Specify the client secret for the OAUTH authentication.

2 Click on Save for each field that is filled in or modified to take into account the value specified.
3 Click on the Test button to test the connection to the Exchange interface using the values specified.