Steps to set Impersonation rights for Office 365
Note: EdbMails application will automatically set Impersonation rights. If the automatic configuration is not successful then the appropriate message will be displayed to set the rights manually.
PowerShell commands to set Impersonation rights
- Click on the Windows Start button.
- Search for 'Windows PowerShell' (PowerShell should already be installed).
- Start PowerShell with administrator privileges (right-click -> run as administrator).
Step 1: If the Exchange Online PowerShell module is not installed, run the following command:
Command: Copy & Paste it on PowerShellInstall-Module -Name ExchangeOnlineManagement
Step 2: Connect to your Office 365 account using the Global Admin account when the login is prompted. Run the following command:
Command: Copy & Paste it on PowerShellConnect-ExchangeOnline
Enter the User Name (SMTP) and Password of Office 365 account having Global Admin credentials.
Step 3: Run the below command to enable organization customization
Command: Copy & Paste it on PowerShellEnable-OrganizationCustomization
Ingore this results, if the error is "This operation is not required. Organization is already enabled for customization."
Step 4: Run the below command to assign the 'ApplicationImpersonation' role to the admin
Command: Copy & Paste it on PowerShell & change UserNew-ManagementRoleAssignment -Role "ApplicationImpersonation" -User user@domain.com
Click here to know the steps to set Impersonation rights using GUI