Assigning Application Impersonation Role to the User Account Specified for the Backup
This section provides information about how to add the backup account to the Discovery Management role group and assign the Application Impersonation permission.
To add the required role and group, perform one of the following:
Method 1: Using Office 365 portal
Follow these steps:
- Log into the Office 365 portal as an Administrator or with an account that has Global Admin permissions.
- The Exchange admin center page appears.
- Go to permissions and from the Add drop-down, double-click Discovery Management.
- The Discovery Management dialog box appears.
- Note: Member of the Discovery Management role group can search mailboxes in the Exchange organization for data that meets specific criteria.
- Under Roles, click + to add the ApplicationImpersonation role.
- The Select a Role dialog box appears.
- From the Display Name drop-down, select ApplicationImpersonation.
- Note: The ApplicationImpersonation role enables applications to impersonate users in an organization to perform tasks on behalf of the user.
- Click Add to add the ApplicationImpersonation role, and then click OK.
- On the Discovery Management dialog box, under Members, click + to add the backup account as a member.
- The Select Members dialog box appears.
- From the Name drop-down, select the backup account, click Add to add the member, and then click OK.
- The selected backup account is displayed under Members on the Discovery Management dialog.
- Click Save.
Method 2: Using Remote PowerShell
Follow these steps:
- Connect to the Exchange Online tenant using remote PowerShell. For more information, see Connect to Exchange Online PowerShell.
- Once connected, to add the backup account as a member of Discovery Management role group, use the following:
- To assign application impersonation role to the backup account, use the following:
"Add-RoleGroupMember" cmdlet
For example: Add-RoleGroupMember "discovery management" -member userName@domain.onmicrosoft.com.
"New-ManagementRoleAssignment" cmdlet
For example: New-ManagementRoleAssignment -Name: impersonationAssignmentName -Role:ApplicationImpersonation - User: "username@domain.onmicrosoft.com"
The ApplicationImpersonation role and Members group are added to the Exchange Online backup account.