EdbMails EDB Recovery and Migration software
  • Products
    Exchange EDB / Email Recovery Tools
    • EDB Recovery and MigrationRecover EDB to PST, EDB to Office 365 and Exchange NO Duplicate Migration
    • OST Recovery and MigrationRecover OST to PST, OST to Office 365 and Exchange Migration
    • PST Recovery and MigrationRecover Outlook PST, PST to Office 365 and Exchange Migration
    • MBOX Export and MigrationExport MBOX to PST, MBOX to Office 365 and Exchange Migration
    • NSF Export and MigrationExport NSF to PST, NSF to Office 365 and Exchange Migration
    • EML to PST ExportEML files export to Outlook PST format
    • PST to MSG ExportOutlook PST files export to MSG format
    • MSG to PST ExportExport MSG files Outlook PST files
    Exchange and Office 365 Migration
    • Exchange Server MigrationMigrate Exchange 2007, 2010, 2013, 2016, 2019 to Office 365 tenants. Also, migrate between Exchange servers and PST
    • Office 365 MigrationMigrate Source Office 365 tenants to Destination Office 365 tenants. Also, migrate to Exchange Server and PST
    • IMAP Email Backup & MigrationMigrate all IMAP email servers (Gmail, Zimbra, Zoho, Yahoo etc.), Office 365, Exchange and Backup to Outlook PST
    • SharePoint Online MigrationMigrate documents, files and folders from SharePoint sites
    • OneDrive for Business MigrationMigrate documents, files and folders from OneDrive
    • Microsoft Teams MigrationMigrate Teams, documents, files and folders etc.
    Exchange and Office 365 Backup
    • Office 365 BackupIncremental, Granular, Encrypted and Compressed Office 365 Mailboxes Backup
    • Exchange Server BackupIncremental, Granular, Encrypted and Compressed Exchange Mailboxes Backup
    • SharePoint, OneDrive & Teams BackupBackup Online site collections, Team sites, Office 365 groups, all documents etc.
    • Duplicate Remover - Office 365, Exchange, IMAP & Outlook Remove duplicate emails, calendars, contacts, journal etc. from Office 365, Exchange, IMAP, Outlook, Gmail, Zimbra, Zoho Mail etc.
    • More Products
  • Features
  • FAQ
  • Pricing
  • Download
  • Support
  • Sign in
User’s Manual
SharePoint Migration

User Manual

User Manual

  • FAQ
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Office 365 Migration
  • Videos
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Office 365 Migration
  • Screenshots
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Office 365 Migration
  • How it works?
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Chats and Channels Migration
  1. Home
  2. Product
  3. Manually Register an App in Azure AD for SharePoint Migration | EdbMails
Download Buy Now

Manually Register an App in Azure AD for SharePoint / OneDrive / Teams Migration

EdbMails supports Modern Authentication using OAuth 2.0, which requires an application to be registered in Microsoft 365 (Office 365) Azure Active Directory. This app registration enables secure authentication to access SharePoint, OneDrive, and Microsoft Teams data during migration.

EdbMails supports two methods to register the required Azure AD application:

  • Automatic Registration Method – Requires a Global Administrator account to sign in to Microsoft 365. EdbMails automatically creates and configures the Azure AD app with the required permissions.
  • Manual Registration Method – Administrators can manually register the Azure AD application and then sign in to Microsoft 365 using an Admin account or any other user account with full access rights, without requiring a Global Administrator account to establish the Office 365 connection in EdbMails.

To complete the manual app registration and authentication process, follow the steps outlined in the sections below.

  1. Prepare CA Certificate or Self-Signed Certificate

    A certificate is required to securely authenticate the Azure AD application during the migration process. You can either use a CA-issued certificate or generate a self-signed certificate based on your organization’s security requirements.

    Execute the following Windows PowerShell commands by running PowerShell as an Administrator to generate the .cer and .pfx files.

    Commands:

    Command: Copy & Paste it

    $cert = New-SelfSignedCertificate `
    -Subject "CN=SPO-Migration-Tool" `
    -CertStoreLocation "Cert:\LocalMachine\My" `
    -KeyExportPolicy Exportable `
    -KeySpec Signature `
    -KeyLength 2048 `
    -HashAlgorithm SHA256 `
    -NotAfter (Get-Date).AddYears(1)
    $pwd = ConvertTo-SecureString "password123" -AsPlainText -Force

    Export-Certificate `
    -Cert $cert `
    -FilePath "D:\SPO_App.cer"

    Export-PfxCertificate `
    -Cert $cert `
    -FilePath "D:\SPO_App.pfx" `
    -Password $pwd

     Note:
    • Replace "password123" with a strong password before exporting the PFX file.
    • If D: does not exist on your system, change the FilePath
  2. Register App in Azure AD

    • Log in to Microsoft Entra Admin Center.
    • Navigate to 'Entra ID' from the left-hand menu, select 'App registrations', and then click '+ New registration'.

      App Registration

    • Now, enter the name for the application and select 'Accounts in this organizational directory only (EdbMails only – Single tenant)', and then click the ‘Register’ button.

      Register an Application

    Configure the application permissions

    • On the application’s ‘Overview’ page, click ‘View API permissions’ to access and manage the app’s permission settings.

      View API Permissions

    • Click the ‘+ Add a permission’ button on the API permissions page.

      Add API Permission

    • Next, in the Request API permissions window, select ‘Microsoft Graph’ from the Microsoft APIs section.

      Select a Microsoft API

    • Then, choose ‘Application permissions’ from the available options.

      Application Permissions

    • Choose the following permissions from the list and click ‘Add permissions’ to apply them.
      • ChannelMember.Read.All
      • ChannelMessage.Read.All
      • Chat.Read.All
      • Directory.Read.All
      • Files.ReadWrite.All
      • Group.ReadWrite.All
      • Sites.FullControl.All
      • User.Read
      • User.Read.All
      • User.ReadBasic.All
      • User.ReadWrite.All

      Add Permissions

    • Again, click the ‘+ Add a permission’ button.

      Add Permissions

    • Navigate to the ‘APIs my organization uses’ tab, search for ‘Office 365 SharePoint Online’, and select it from the results.

      Office 365 SharePoint Online

    • Then, choose ‘Application permissions’ from the available options.

      Office 365 SharePoint Online

    • Choose the following permissions from the list and click ‘Add permissions’ to apply them.
      • Sites.FullControl.All
      • TermStore.ReadWrite.All

      Add Permissions

    • On the API permissions page, click ‘Grant admin consent’.

      Grant Admin Consent

    • Click ‘Yes’ to confirm the admin consent.

      Confirm Admin Consent

    • The selected permissions are granted with admin consent

      Source Permissions List

    Upload certificate

    Follow the steps below to upload the certificate that is generated using PowerShell commands:

    • Navigate to ‘Certificates & secrets’ and click the ‘Certificates’ tab.

      Certificates and Secrets

    • Click on ‘Upload certificate’.
    • Browse and select the .cer file, enter the description for the certificate, and then click the ‘Add’ button.

      Select .cer File

       Note: The certificate is uploaded with a default validity of one year. After it expires, a new certificate must be uploaded.

      Upload Certificate

    • Navigate to the 'Overview' section and note the 'Application (Client) ID' and 'Directory (Tenant) ID'. These details need to be then pasted in the EdbMails application later.

      Copy Client & Tenant ID

    Permissions for target SharePoint Server

     Note:
    • Repeat the same steps for the target server except the permissions. Target Permissions are mentioned below.
    • You can use the same .cer file to upload the certificate in the Target environment.
    • Navigate to ‘Microsoft Graph’ and choose the permissions
      • Channel.Create
      • Channel.ReadBasic.All
      • ChannelMember.ReadWrite.All
      • ChannelMessage.Read.All
      • Chat.Read.All
      • Directory.Read.All
      • Files.ReadWrite.All
      • Group.ReadWrite.All
      • Sites.FullControl.All
      • TeamMember.Read.All
      • User.Read
      • User.Read.All
      • User.ReadBasic.All
      • User.ReadWrite.All
      • The permissions that need to be selected under ‘Office 365 SharePoint Online’ are:
        • Sites.FullControl.All
        • TermStore.ReadWrite.All

        Target Permissions List

      • Once the permissions are assigned, grant admin consent. Next, navigate to the ‘Overview’ section, copy the ‘Application (client) ID’ and ‘Directory (tenant) ID’, and use them for the target connection in the EdbMails application.
  3. Connect to SharePoint Server in EdbMails

    • Select the option 'Manual Registration' and click the 'Next' button.

      Manual Registration

    • Enter the ‘Application (Client) ID’, ‘Directory (Tenant) ID’, and then click the ‘Import’ button.

        Note: Ensure the certificate is installed in the correct certificate store before entering the thumbprint; otherwise, import it using the ‘Import’ button.

      Enter the Required Details

    • Browse the PFX file, enter the ‘Password’ (the password you set when exporting the PFX file using PowerShell Commands), and then click the ‘Continue’ button.

      Upload PFX file

       Note: You can also directly copy the value for certificate thumbprint from the ‘Entra admin center’ under the ‘Certificates & secrets’ section.

    • Click the ‘Login’ button to continue.

      Login to Source SharePoint

       Note: If you choose to use the manual registration method for both the source and target servers, register the application separately for each server by following the steps outlined above.


Additional resources:

  • SharePoint Migration
  • OneDrive Migration
  • Microsoft Teams Migration
lady image

 

 In this manual

IntroductionPrepare CA CertificateAzure AD App RegisterSharePoint Server Connection

SharePoint Migration

Just 10 Sites $80 Only

Buy Now

Need help?

24/7 Customer support

Contact us on Live chat

Personalized Demo

Book a personalized demo

Still need help?

Email us / Call us

@edbmails.com All rights are reserved Privacy Policy | Terms of Use | GDPR | Security | Press Releases

hidden msg
Live Chat

Hi, May I help you?

Hide Chat Now