Manual Microsoft 365 tenant configuration
If the automatic configuration was not successful, the tenant must be configured manually. To do that, navigate to ccount Configuration > Microsoft 365 Tenant > Add New Tenant and select Click here to configure with an already existing Microsoft Entra application.
Prerequisites:
- A service user account with at least Exchange Administrator privileges to configure tenants in Exchange Online. Click here to learn how to create such a service account.
- An application registration configured in RecoveryManager Plus should be assigned Exchange Administrator privileges. Click here to learn how to add roles to applications.
- If the account you use to configure your tenant to RecoveryManager Plus has MFA enabled, you need to use either the Conditional Access or Trusted IP feature in Microsoft 365 to bypass MFA. Once you have configured one of these features, proceed to configure the service account in RecoveryManager Plus.
- Create a self-signed X.509 certificate. Download the PowerShell script from this link. Open PowerShell and run the downloaded script using the following command:
.\Create-SelfSignedCertificate.ps1 -CommonName "CertificateName" -StartDate YYYY-MM-DD -EndDate YYYY-MM-DD.
The certificate will be created with the name provided in the CertificateName position. In the YYYY-MM-DD field, provide the start and end date for the certificate. Once you run the PowerShell script, you will be requested to provide a password for the PFX file. The PFX and CER files will be exported to the current folder. The password you provided and the certificate files will be required in the later steps.
There are two steps to configure a tenant manually.
Steps to create an Entra application
To create an Entra application,
- Sign in to the Microsoft Entra admin center using the credentials of a Global Administrator account.
- Click Microsoft Entra ID under Azure services.
- Under the Manage section, click App registrations > New registration.
- Provide a Name for the RecoveryManager Plus application to be created.
- Select a supported account type based on your organizational needs.
- Leave the Redirect URI (optional) field blank. You will configure it in the next few steps.
- Click Register to complete the initial app registration.
- You will now see the Overview page of the registered application.
- Navigate to Authentication in the side pane.
- Click Add a platform under Platform configurations.
- In the Configure platforms pop-up, click Web under Web applications.
- In the Redirect URIs field, enter http://localhost:port_number/webclient/GrantAccess.
For example, http://localhost:8090/webclient/GrantAccess or https://192.345.679.345:8090/webclient/GrantAccess.
- You can leave the Logout URL and Implicit grant and hybrid flows fields empty. Click Configure.
- In the Authentication page, under Redirect URIs, click Add URI and add the following URLs.
- http://localhost:port_number/AADAppGrantSuccess.do
- http://localhost:port_number/AADAuthCode.do
- https://identitymanager.manageengine.com/api/public/v1/oauth/redirect
- It must be fewer than 256 characters in length.
- It should not contain wildcard characters.
- It should not contain query strings.
- It must start with HTTPS or http://localhost.
- It must be a valid and unique URL. Based on the connection type (http/https) you have configured in RecoveryManager Plus, the REDIRECTURL format varies.
- For http, the URL value is http://localhost:8090. Machine name or IP address cannot be used in place of localhost if http is used.
- For https, the URL value is https://192.345.679.345:8090 or https://testmachine:8090.
- To find your machine's IP, open the Command Prompt, type ipconfig, and click Enter. You can find your IPv4 Address in the results shown

Note The REDIRECT URI must adhere to the following criteria:
- Click Save.
- To enable RecoveryManager Plus to access and backup resources from the module(s) you configure, specify the required permissions in the app registration manifest file. To do so, click Manifest from the left pane and look for requiredResourceAccess array in the code that will be displayed.
- Copy the file(s) provided in the corresponding module below and paste it in the highlighted section of the code.
- All modules
- Microsoft Entra ID:
- Copy the content from this file and paste it into the section highlighted in the image below.
- The roles that must be assigned to the application are given in the table below.
- Exchange Online
- Copy the content from this file and paste it into the section highlighted in the image below.
- The roles that must be assigned to the application are given in the table below.
- SharePoint Online and OneDrive for Business
- Copy the content from this file and paste it into the section highlighted in the image below.
- The roles that must be assigned to the application are given in the table below.
- If your tenant is being created in Azure Germany, copy the entire content from this file and paste them into the section highlighted in the image below.
- If your tenant is being created in Azure China, copy the entire content from this file and paste them into the section highlighted in the image below.
- Click Save.
- Click API permissions from the left pane.
- In the Configured permissions section, click ✓ Grant admin consent for <your_company_name>.
- Click Yes in the pop-up that appears.
- Click Certificates & secrets from the left pane.
- Under the Client secrets section, click New client secret.
- This section generates an app password for RecoveryManager Plus. In the Description field of the pop-up, provide a name to identify the app to which the password belongs.
- Choose when the password should expire and click Add.
- Copy the string under Value and save it. This is the Application Secret Key, which you will require later.
- In the Certificates section, click Upload certificate and upload the .CER file generated in the prerequisites section.
- Now, navigate to the Overview section in the left pane.
- Copy the Application (client) ID and Object ID values and save them. You will need these values to configure your tenant in the RecoveryManager Plus portal.
- Return to the RecoveryManager Plus console where you have the Configure Microsoft 365 Tenant pop-up.
- Enter your Tenant Name. For example, test.onmicrosoft.com.
- Paste the Application ID and Application Object ID values copied in Step 29 of the previous section into the respective fields.
- For the Application Secret Key, paste the value copied in Step 26 of the previous section.
- In the Application Certificate field, click Browse and select the .PFX file generated in the prerequisites section. In the Certificate Password field, enter the password used in the prerequisites section.
- Enter the Service account name and Password of the user service account you created for RecoveryManager Plus.
- Click Add Tenant.
- You should now see that Entra ID Application Status is successful for the account you configured.


If you have configured all applications and pasted the file, it should look like the image below.


| Module | Role Name | Permission | Scope |
|---|---|---|---|
| Microsoft Entra ID | Azure Active Directory Graph | Domain.ReadWrite.All | Read and write all domain properties |
| Microsoft Graph → Application Permissions | AppRoleAssignment.ReadWrite.All | Manage app permission grants and app role assignments | |
| AdministrativeUnit.ReadWrite.All | Read and write all administrative units | ||
| Application.ReadWrite.All | Read and write all applications | ||
| AppRoleAssignment.ReadWrite.All | Manage app permission grants and app role assignments | ||
| Directory.ReadWrite.All | Read and write directory data | ||
| Domain.ReadWrite.All | Read and write domains | ||
| Group.Create | Create groups | ||
| Group.ReadWrite.All | Read and write all groups | ||
| Policy.Read.All | Read your organization's policies | ||
| Policy.ReadWrite.ApplicationConfiguration | Read and write your organization's application configuration policies | ||
| Policy.ReadWrite.Authorization | Read and write your organization's authorization policy | ||
| Policy.ReadWrite.ConditionalAccess | Read and write your organization's conditional access policies | ||
| RoleManagement.ReadWrite.Directory | Read and write all directory RBAC settings | ||
| AuditLog.Read.All | Read all audit log data | ||
| BitlockerKey.Read.All | Read all BitLocker keys | ||
| DeviceLocalCredential.Read.All | Read all device local credential properties, including passwords | ||
| Policy.ReadWrite.AuthenticationMethod | Read and write all authentication method policies | ||
| Policy.ReadWrite.DeviceConfiguration | Read and write organization's device configuration policies | ||
| User.ReadWrite.All | Read and write all users' complete profiles |

| Module | Role Name | Permission | Scope |
|---|---|---|---|
| Exchange Online | Office 365 Exchange Online | EWS.AccesAsUser.All | Back up and restore mailboxes |
| full_access_as_app | Use Exchange Web Services to back up and restore mailboxes | ||
| Exchange.ManageAsApp | Manage Exchange as Application |

| Module | Role Name | Permission | Scope |
|---|---|---|---|
| SharePoint Online and OneDrive for Business | SharePoint | Sites.FullControl.All | Backup and restore sites |
| User.ReadWrite.All | Read and write the full set of profile properties, reports, and managers of users |

Note Copy and paste content only from the open square bracket to the closed square bracket. Ensure that all punctuation marks are retained correctly.



Steps to configure an Entra application in RecoveryManager Plus
