The concerned organization’s admin will log in at https://portal.azure.com/
Go to the App registration under the options of Azure services ( If you cannot view the option of App Registration, then search it on the search bar provided on the dashboard).
Click on New Registration to create a new app.
You will be redirected to App Registration Page. Here you will be able to fill out the form–
Application’s Name in the NAME field
Supported Account Types
Check for-> Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts, e.g., Skype, Xbox)
Click on Register to successfully submit the form.
Go back to Home Page and select Owned Applications, and select the application display name you created
After selecting the application, you will be redirected to the App Registration page.
Go to => Certificates & secrets in the sidebar menu—
Click on New Client Secret
In Add Client Secret, enter the Description for the client secret and Expire time and Click on Add Button below.
Copy the key value of created secret (Note: Don’t refresh till you copy this at some place where it will not get lost because it will not be visible after that)
Go to Overview Tab; copy the Application (client) ID and Directory (tenant) ID.
Go to API permissions and now click on Add a permission.
Now select Microsoft Graph.
Now select Application permissions
Now select the below permissions:
Mail.Read
Mail.ReadBasic.All
Mail.ReadWrite
User.Read.All
User.ReadWrite.All
User.Read (This is already present in the permissions, No need to add)
After adding all the required API/Permissions, we now need to Grant admin consent for [Organizatoin_name] Which will show a green tick for all permission status