Repository Specific Guides
...
Installation and Base Configur...
Configure app within M365 - Ap...

Graph API: Sites Selected

5min

To setup granular permissions for the middleware application you will need to create an azure application that already has the permission Sites.Selected with admin consent granted. (See the below screenshot to setup granular permissions for the middleware application)asd

Document image


Once that is completed we will use the graph explorer to give permissions to our azure application for the selected site.

Document image

  • In the response object copy the highlighted value under "id".

(This is different for each tenant and site. Do not use the sample site id provided in the screenshot)

Document image

  • In URL input for query enter the following and run the following query.

You may recieve a 403 forbidden access response. If so click modify response and consent the permissions

Document image

  • Change the request from a GET to POST. Click request body tab and modify the following json object sample below with the applicable azure application id and display name for your organization. Copy and paste the modified object into the request body tab. (You can get the azure app id and display name from the overview page of the azure application). Run the query.



JSON

Document image


Below is a screenshot if the permissions have been setup successful.

Document image