How to register CodeTwo applications in Entra ID (Azure AD)
Problem:
You want to manually register a CodeTwo application in your Microsoft Entra ID tenant.
Solution:
To enable a CodeTwo program to connect to Microsoft 365 (Office 365) by using the secure OAuth 2.0 authorization protocol, first you need to register a CodeTwo application in Entra ID for all Microsoft 365 tenants that will be used in the program. Next, to allow the CodeTwo application to access your data and perform the necessary tasks, you also need to grant the necessary permissions to that application.
These guidelines apply to the following CodeTwo programs:
- CodeTwo Backup, starting with version 2.6.x
- CodeTwo Office 365 Migration / CodeTwo Exchange Migration, starting with version 3.3.x
If you are using an older version of CodeTwo Backup, refer to this article instead.
If you are using an older version of CodeTwo migration software, refer to this article instead.
Use the links below for guidelines on how to register the CodeTwo application in Entra ID (Azure AD):
- Before you start
- Register a new application in Entra ID
- Configure application permissions
- Assign certificates / secrets to an app in Entra ID
For guidelines for the Sent Items Update (SIU) service in CodeTwo Email Signatures On-prem, refer to this user’s manual (the steps provided there will also work for the discontinued CodeTwo Exchange Rules family of software).
Before you start
Keep in mind that CodeTwo software can perform the registration automatically. You simply need to provide the credentials of a user with the Global Administrator or Privileged Role Administrator role in the server connection wizard. To learn more, see the user's manual:
CodeTwo Backup
CodeTwo Office 365 Migration
If you want to continue with manual registration, proceed to the next section.
Registering a new application in Entra ID
- Sign in to the Microsoft Entra admin center.
- Navigate to Entra ID > App registrations.
- Click New registration (Fig. 1.). This opens the Register an application page.
![]()
Fig. 1. The App registrations page in the Microsoft Entra admin center.
Enter a name for the application (e.g., CodeTwo Migration app, if you are using one of CodeTwo’s migration tools) and click Register (Fig. 2.). You can leave the other options to their defaults.
![]()
Fig. 2. Registering the CodeTwo application with Entra ID.
Configuring application permissions
- On the application Overview page, click View API permissions (Fig. 3.). The API permissions page will open.
![]()
Fig. 3. Accessing the API permissions page.
- Click Add a permission and select Microsoft Graph under Microsoft APIs.
- Click Application permissions and select the permissions required by a specific CodeTwo application and server connection type:
CodeTwo Backup
If you are configuring a connection to Exchange Online, select:
- User.Read.All
- Directory.Read.All
- Group.Read.All
- MailboxSettings.ReadWrite
- MailboxItem.ImportExport.All
- MailboxItem.Read.All
- MailboxFolder.ReadWrite.All
- Mail.Send*
and skip to this step.
* This permission is required for the program to send email reports (learn more). If you don’t intent to use this feature, you don’t need to assign this permission to the CodeTwo app.
If you are configuring a connection to SharePoint Online, select:
- Directory.Read.All
- Group.Read.All
- User.Read.All
and skip to the this step.
CodeTwo migration software
If you are configuring a connection to your source Microsoft 365 (Office 365) tenant, select:
- User.Read.All
- Directory.Read.All
- MailboxSettings.ReadWrite
- MailboxFolder.Read.All
- Mail.ReadBasic.All
- MailboxItem.Export.All
- MailboxItem.Read.All
and skip to this step.
If you are configuring a connection to your target Microsoft 365 (Office 365) tenant, select:
- User.ReadWrite.All
- Directory.ReadWrite.All
- Device.ReadWrite.All
- MailboxSettings.ReadWrite
- MailboxItem.ImportExport.All
- Mail.ReadWrite
- MailboxFolder.ReadWrite.All
- Mail.Send*
and skip to this step.
* This permission is required for the program to send email reports (learn more). If you don’t intent to use this feature, you don’t need to assign this permission to the CodeTwo app.
- (SharePoint Online connections only) Click Add a permission once again and click APIs my organization uses (see Fig. 4.). Type Office 365 in the search box, click Office 365 SharePoint Online on the list and choose Application permissions. Select the following permissions:
- Sites.FullControl.All
- User.Read.All
and click Add permissions.
![]()
Fig. 4. Listing all APIs available for your organization.
- Back on the API permissions page, click the Grant admin consent for <your organization name> button (once it becomes available) and then click Yes to confirm (Fig. 5.).
![]()
Fig. 5. Granting the necessary consents.
Assigning certificates / secrets in Entra ID
You need to assign a certificate or client secret (app password) to the newly added application. This will allow the OAuth protocol to prove the application’s identity. Follow the steps below to assign a certificate or add a client secret to the CodeTwo application registered in Entra ID (Azure AD).
Important
Note that client secrets (app passwords) cannot be used if you want to connect to SharePoint Online from CodeTwo Backup. For this scenario, you can use a certificate only.
- Navigate to Entra ID > App registrations > All applications and select the newly added application (in this example: CodeTwo Migration app).
- In the navigation menu, click Certificates & secrets (see Fig. 6.). Now, you need to assign either a certificate or client secret to the CodeTwo application.
- 3a To assign a certificate, click Certificates > Upload certificate, select your certificate file and click Add (Fig. 6.). The certificate needs to be signed with a key size of 2048 bits.
![]()
Fig. 6. Assigning a certificate in Entra ID.
- 3b To add a client secret, click Client secrets > New client secret, enter a short description (e.g., CodeTwo Migration app), select the expiration time (whichever suits your needs) from the drop-down menu, and click Add (Fig. 7.).
![]()
Fig. 7. Creating a new client secret for an application registered in Entra ID.
Important
Make sure to copy the client secret value to clipboard (Fig. 8.) or use it in your CodeTwo application straightaway, because once you refresh the page, you will not be able to view that value again. You will have to create another client secret.
![]()
Fig. 8. How to copy the client secret value to the clipboard.
Once done, the application registration process is completed. You can now configure a connection to Microsoft 365 (Office 365) in your CodeTwo software. All the information that you need to provide in the Application details step of the server connection wizard (Fig. 9.) is provided in Entra ID either on the application overview page (Application (client) ID and Directory (tenant) ID) or on the Certificates & secrets page (the Certificates or Client secrets tab).
Important
If you have used a certificate to identify an application, you can enter the Certificate thumbprint only if the certificate associated with the CodeTwo application has been added to the correct certificate store on the machine where the application is installed. If not, use the Import button to add the necessary certificate to that store.
![]()
Fig. 9. Providing the registration details in the target server connection wizard in CodeTwo Office 365 Migration.
For more information on how to configure server connections, refer to the user’s manual:
| Related products: | CodeTwo Backup for Exchange, CodeTwo Backup for Office 365, CodeTwo Exchange Migration, CodeTwo Office 365 Migration |
| Categories: | How-To |
| Last modified: | October 8, 2026 |
| Created: | January 27, 2020 |
| ID: | 840 |



