- Login to MS Office365 Entra admin center
- Click on Applications and select App registrations.
- On the App registrations page, select New registration.
- Provide an application name, select the default option (as shown in the image), and click Register.
- Configure API permissions:
- On the next screen, select API permissions.
- Click on Add a permission.
- From the Select an API screen, choose APIs my organization uses.
- Type Office 365 Exchange Online.
- 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
- Click Add permissions.
Note: Permissions are added but not yet granted.
- Grant admin consent:
1. Click on Grant admin consent for [Your Organization Name].
2. Confirm by selecting Yes.
2.1. Permissions will now be granted.
- Create client secrets:
- Go to Certificates & secrets.
- Under Client secrets, click New client secret.
- 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.
Note: You need to copy the client value immediately otherwise it will get encrypted.
- Retrieve application credentials:
- Click on Overview.
- You will see the Client ID and Tenant ID. Copy both the IDs