How to Create an EntraID Application for Cloudiway

5 min read Updated on December 1, 2024 Cloudiway Team

To allow Cloudiway to access your Microsoft 365 tenant and perform migrations (emails, files, Teams), you need to create an EntraID application (formerly Azure AD) with the appropriate permissions. This guide walks you through this configuration step by step.

Who is this guide for?

This guide is intended for administrators configuring Cloudiway for the first time or who need to create a new application for a specific migration project.

Prerequisites

Before you begin, make sure you have:

Step 1: Access the Azure Portal

  1. Log in to the Azure Portal with an administrator account
  2. In the search bar, type "App registrations"
  3. Click on Microsoft Entra ID > App registrations

Quick shortcut

You can access the app registrations page directly at: https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps

Step 2: Create the Application

  1. Click on "+ New registration"
  2. Fill in the following information:
    • Name: Cloudiway Migration (or a descriptive name of your choice)
    • Supported account types: Select "Accounts in this organizational directory only (Single tenant)"
    • Redirect URI: Leave blank for now
  3. Click on "Register"

Important

Immediately note down the Application (client) ID and Directory (tenant) ID displayed on the overview page. You will need these to configure the connector in Cloudiway.

Step 3: Configure API Permissions

The required permissions depend on the type of migration you are performing. Here are the most common configurations:

For Mailbox Migration (Mail)

  1. In the left menu, click on "API permissions"
  2. Click on "Add a permission"
  3. Select "Microsoft Graph"
  4. Choose "Application permissions"
  5. Search and add the following permissions:
    • Mail.ReadWrite
    • MailboxSettings.ReadWrite
    • User.Read.All
    • Group.Read.All

For OneDrive/SharePoint Migration (Files)

Also add:

  • Files.ReadWrite.All
  • Sites.ReadWrite.All

For Teams Migration

Also add:

  • Team.ReadBasic.All
  • Channel.ReadBasic.All
  • ChannelMessage.Read.All
  • Chat.Read.All
Migration Type Required Permissions
Mail Mail.ReadWrite, MailboxSettings.ReadWrite, User.Read.All
OneDrive Files.ReadWrite.All, Sites.ReadWrite.All, User.Read.All
SharePoint Sites.ReadWrite.All, Sites.FullControl.All
Teams Team.ReadBasic.All, Channel.*, Chat.*, User.Read.All

Step 4: Generate a Client Secret

  1. In the left menu, click on "Certificates & secrets"
  2. In the "Client secrets" section, click on "+ New client secret"
  3. Add a description: Cloudiway Migration Secret
  4. Select an expiration period (we recommend 24 months to avoid interruptions)
  5. Click on "Add"

Attention - Immediate action required

The secret is only displayed once. Copy it immediately and store it securely. If you lose it, you will need to create a new one.

For the application to use the granted permissions:

  1. Go back to "API permissions"
  2. Click on "Grant admin consent for [your organization]"
  3. Confirm by clicking "Yes"

All permissions should now display a green checkmark in the "Status" column.

Configuration in Cloudiway

Now that your application is created, configure it in Cloudiway:

  1. Log in to the Cloudiway Portal
  2. Navigate to your project and open the Connector Settings
  3. Enter the following information:
    • Tenant ID: The Directory (tenant) ID noted earlier
    • Application ID: The Application (client) ID
    • Client Secret: The secret generated in Step 4
  4. Test the connection to validate the configuration

Common Troubleshooting

"Insufficient privileges" Error

This error indicates that:

  • Admin consent has not been granted
  • Permissions are missing
  • The secret has expired

Solution: Check in "API permissions" that all permissions have "Granted" status and that the secret is still valid.

"AADSTS700016: Application not found" Error

The Application ID is incorrect or the application has been deleted.

Solution: Verify the Application ID in the Azure portal and in the Cloudiway configuration.

"Invalid client secret" Error

The client secret is incorrect or has expired.

Solution: Generate a new secret and update the configuration in Cloudiway.

Configuration complete!

Your EntraID application is now ready to be used with Cloudiway. You can start your first migration.

Was this article helpful?

Need more help? Contact our support

We value your feedback

Help us improve your experience

What would you like to share with us?

Need direct support? Open a ticket