Home / Platform Considerations / M365 Authentication Options
EWS/Graph Modern Authentication (OAuth 2.0)
When migrating to or from Microsoft Exchange Web Services (EWS) or Graph with Modern Authentication (OAuth 2.0), you must create an application that Transend uses to perform an administrative driven migration. Below are instructions to create the application either programmatically via PowerShell or manually through the Entra admin center UI.
On this page:
- Programmatically create your application in PowerShell
- Manually create your application in Entra admin center
Programmatically create your application in PowerShell
If you are comfortable running PowerShell scripts, you can use the m365_initialize_app.ps1 script to programmatically create and configure the Microsoft Entra ID app that Transend products use to connect to Microsoft 365.
The script creates the app registration and service principal, assigns the Microsoft Graph, Exchange, and SharePoint permissions needed by the migration tools, grants admin consent, creates a client secret, and assigns the required directory role. Automating these steps reduces manual setup process (defined below) and helps ensure that the credentials supplied to the other Microsoft 365 scripts have the required access.
After you create your application, follow steps 25 and 26 below to enter the necessary Application ID and Application Secret into Transend Migration Console during configuration.
The script is available through TMCTools:
Manually create your application in Entra admin center
Manually create an application that is unique to your organization in order to receive an Application ID and Application Secret that you will input into Transend Migration Console during configuration.
Important: When inputting an email address as requested below, primary email addresses are required. If an alias email address is used, errors will occur.
Log into Microsoft Entra admin center as an administrator.
Click Entra ID > App registrations.

Click New registration.

Select any name for your app (i.e. Transend Migration Console for XYZ Corp).
Set the account type to Accounts in this organizational directory only. Do not enter a Redirect URL.
Click Register.

Once successfully registered, copy the Application (client) ID. You will eventually need to enter this into Transend Migration Console.

Click Manage > Certificates & Secrets.
Click New client secret.

Add a secret and expiration and click Add.

Copy your secret’s Value to notepad. You will eventually need to enter this into Transend Migration Console.

Click API Permissions > Add a permission.

Click the APIs my organization uses tab.
In the search bar, enter Office 365 and select Office 365 Exchange Online.

Click the Application permissions box.

Click the checkbox to add the following API Permissions:
- Exchange > Exchange.ManageAsApp
- Other Permissions > full_access_as_app
- IMAP > IMAP.AccessAsApp

After checking the box of all the above referenced permissions, click Add permissions at the bottom of the page.
You will now see the selected permissions listed in the Office 365 Exchange Online section.

On the API Permissions page, select Microsoft Graph.
Important: If Microsoft Graph has not previously been added, you must first add Microsoft Graph before completing Steps 20 – 23.

Select Microsoft Graph to open a “Request API permissions” screen. Select the Applications permissions box and then type Mail.Read into the Select permissions search field. Expand the Mail section and check the box for Mail.ReadWrite.

Click Update permissions at the bottom of the screen.
Follow the same steps to add the following permissions. You should be able to check them all and then click ‘Add permissions’ to add them all at once.
- TeamSettings.ReadWrite.All
- Mail.ReadWrite
- User.ReadWrite.All
- Directory.ReadWrite.All
- MailboxItem.ReadWrite.All
- MailboxFolder.Read.All
- Contacts.ReadWrite
- Sites.Manage.All
- Files.ReadWrite.All
- Mailboxitem.ImportExport.All
- Calendars.ReadWrite
- MailboxSettings.ReadWrite
- Tasks.ReadWrite.All
- Sites.FullControl.All

In the Configured permissions section, click Grant admin consent for [your organization], and then click Yes in the dialog box.

Congratulations! Admin consent has been successfully granted.

In Transend Migration Console, navigate to the Configuration Settings > Required screen.
Enter values into the following fields:
Primary Domain
Application (client) ID
Application Secret (Value)


















