# Preconfiguration of Microsoft Exchange
An impersonation account is a Microsoft Exchange service account given the ApplicationImpersonation role by the administrator. Impersonation allows the caller (in our case, TrueConf Calendar Connector) to act as a user account. This means that the caller can perform operations using the permissions associated with the impersonated account, instead of its own permissions. Such an account is used in scenarios where centralized mailbox management is needed, such as in support services or automated systems.
# Creating an account on the Microsoft Exchange server
Before completing this step, make sure that:
Your Active Directory service is configured.
The Microsoft Exchange server recognizes the Active Directory server.
Refer to the official documentation for installation and configuration instructions for this software.
Before proceeding with the configuration of TrueConf Calendar Connector, you need to create an account on the Exchange server and grant it impersonation rights. To do this:
Log in to the Microsoft Exchange server control panel at
https://example.com/ecp/using the administrator's username and password.In the Recipients → Mailboxes section.
Click
.In the dialog box that appears, select User mailbox.

In the form that appears, in the Alias field, enter the name of the Exchange account, then:
Select an existing user from your Active Directory catalog.

or
Manually enter the new account information. In this case, the account will also be created in Active Directory.

6. Next, click the Save button.

# Creating an impersonation group
Before assigning a user an impersonation role, it is necessary to create a group with these permissions (do not confuse with AD groups, this entity is used only within Exchange). To do this:
Go to the Permissions → Admin roles section.
Click
.

In the window that opens, enter the name of the new role.
In the Roles section, click
.In the window that opens, select ApplicationImpersonation and click Add → OK.

In the Participants section, click
.Select the created user and click Add → OK.

Click the Save button.

# Encryption of impersonation account password
To proceed with the configuration, you need to encrypt the impersonation account password. To do this:
# Windows:
In the command line, execute the command:
C:\Program Files\TrueConf\Calendar\tc_calendar.exe --hash_pass <password>
Where password is the password for your impersonation account.
# Linux:
Execute the command in the terminal:
sudo /opt/trueconf/calendar/bin/calendar/tc_calendar --hash_pass <password>
Where password is the password for your impersonation account.
You can now proceed to the beginning of the installation.