Manually Grant SharePoint Site Access

This guide provides a step-by-step walkthrough for granting specific SharePoint sites permissions to a given target application.

1. Create an Admin App

  1. Create Admin App with Sites.FullControl.All permission. For a step-by-step guide, check the admin app section onCreate a Sharepoint Connection.

2. Get access token of Admin App by Postman

  1. Use the Client Id, Client Secret Key, Tenant Id of the Admin App to POST to https://login.microsoftonline.com/<tenant_id>/oauth2/token

3. Get the Sharepoint site id

  1. Create a GET request to https://graph.microsoft.com/v1.0/sites/ with the access_token from the previous step as Bearer Token auth and save the returned id .

4. Assign SharePoint site permission to target application

  1. Create a POST request to http://graph.microsoft.com/v1.0/sites/<site_id>/permissions with the following JSON payload:

5. Add Sharepoint site on Blockbrain platform

  1. Continue with 5. Configure SharePoint Integration in Blockbrain on Sharepoint Manual Site Setup

Last updated