Request and grant permissions to Azure APIs for the Azure app for Exchange Online.
Procedure
In the navigation pane, click API permissions.
Click Add a permission.
The Request API permissions pane appears.
Click the Microsoft Graph tile.
Click Application permissions.
Select the following permissions:
Directory: Directory.Read.All
Group: Group.ReadWrite.All
Application: Application.ReadWrite.All
Reports: Reports.Read.All
MailboxSettings:MailboxSettings.Read
Click Add permissions.
Click Add a permission.
The Request API permissions pane appears.
Click APIs my organization uses, and then complete the following steps:
In the search bar, enter Office 365 Exchange Online.
Select Office 365 Exchange Online, and then click Application permissions.
Select full_access_as_app.
Click Add permissions.
On the app API permissions page, click Grant admin consent for tenant_name.
Click Yes.