To setup the Sharepoint tool you need to configure API access via the following steps
Your Microsoft Tenant ID and Client ID can be found my navigating to the Micorsoft Entra Admin Center and then going to the Overview
Page under the Identity Section
. There the Tenant ID is listed as Tenant ID, and the Client ID is listed as the Application ID.
Copy your Tenant ID into the configuration.yaml
file in the config directory of the backend, and your Client ID into the secrets.yaml
file in the config directory of the backend.
Navigate to the App registration
page under Applications
on the same Micorsoft Entra Admin Center website.
Click New registration
to register a new application. Enter a name and select the proper account type. Single tenant is the norm unless you know of otherwise.
Under redirect URI select Web as the path should be /v1/tool/auth
. For example:
https://<your_backend_url>/v1/tool/auth
Click Register
to Complete the Application Registration
Under the newly registered application navigate to the API permissions
page. There you need to Click Add a permission
, select Microsoft Graph
, then delegated permissions
. Next search files.read.all
and check the box, then search sites.read.all
and check the box. Then Click Add permissions
.
Under the newly registered application navigate to the Certificates & secrets
page. Click New client secret
, enter a description and an expiry then click Add
. Your new Client Secret is only available to copy under the value
column of the table right now. Copy it into the secrets.yaml
file in the config directory of the backend.
run next command to start the backend and frontend:
make dev