Request and grant permissions to Azure APIs for the Azure app for SharePoint 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 (mandatory):
-
User.Read.All
-
Group.Read.All
-
Optionally, we need Site.Read.All (for tenant discovery) and Group.ReadWrite.All (for Group sites in-place restores).
-
-
Click Add permissions.
-
Click Grant admin consent for tenant_name.
-
Click Yes.