Go to API-permissions in Azure => click add permission => Choose Sharepoint

First select ‘Delegated permissions’. Use the search bar to quickly navigate to the options below

Select following three options:

1. AllSites.Write
2. Sites.Search.All
3. Termstore.ReadWrite.All

After selecting the options, click “add permissions”.

Next, we will configure Microsoft Graph permissions.

Go to API-permissions in Azure => click add permission => Microsoft Graph.

First select ‘Delegated permissions’. Use the search bar to quickly navigate to the options below.

Select following options:
– Offline access

– Open ID

After selecting the two options, click “update permissions”.

Click “Grant admin consent for {your_company}” next to “Add a permission”.