1. Login to MS Office365 Entra admin center

    Login to MS Office365 Entra admin center

     
  2. Click on Applications and select App registrations.

    Click on Applications and select App registrations.
     
  3. On the App registrations page, select New registration.

    On the App registrations page, select New registration.

     
  4. Provide an application name, select the default option (as shown in the image), and click Register.

    Provide an application name, select the default option (as shown in the image), and click Register.
     
  5. Configure API permissions:
    1. On the next screen, select API permissions.
    2. Click on Add a permission.
    3. From the Select an API screen, choose APIs my organization uses.
    4. Type Office 365 Exchange Online.

      Type Office 365 Exchange Online.
       
    • For Delegated permissions. Click the User drop- down menu and select User.Read.All

      For Delegated permissions. Click the User drop- down menu and select User.Read.All

       
    • For Application permissions, click on the Other permissions drop down menu and select full_access_as_app

      For Application permissions, click on the Other permissions drop down menu and select full_access_as_app

       
    • Click Add permissions.

      Click Add permissions.

      Note: Permissions are added but not yet granted.
       
  6. Grant admin consent:
    1. Click on Grant admin consent for [Your Organization Name].
    2. Confirm by selecting Yes.

    2. Confirm by selecting Yes.

      2.1. Permissions will now be granted.

      2.1. Permissions will now be granted.
     
  7. Create client secrets:
    1. Go to Certificates & secrets.
    2. Under Client secrets, click New client secret.
    3. Click New Client Secrets

      Click New Client Secrets

      3.1. Enter a description and set the expiry date for the client secret value.
      3.2. Click Add and copy the secret value.

      3.2. Click Add and copy the secret value.

      Note: You need to copy the client value immediately otherwise it will get encrypted.
       
  8. Retrieve application credentials:
    1. Click on Overview.
    2. You will see the Client ID and Tenant ID. Copy both the IDs

      You will see the Client ID and Tenant ID. Copy both the IDs