You can connect your organization’s SharePoint to BEAMON to enable direct access and automation.
All steps must be completed by a SharePoint administrator.
Prerequisites
Before starting, you’ll need:
- Tenant ID
- Client ID
- Client Secret
-
Default Site ID (optional)
- If provided, BEAMON will only access this site.
- If not provided, BEAMON will have access to your entire SharePoint.
Connect SharePoint to BEAMON
Step 1: Find your Tenant ID
- Go to the Microsoft Entra admin center.
- Copy your Tenant ID for later use in BEAMON.
Step 2: Create the App Registration
- In the Entra portal, go to Applications > App registrations.
- Create a new App registration (this will be the app used by BEAMON).
- Under API permissions, select:
-
Microsoft Graph > Sites.FullControl.All to give access to all sites, or
-
Sites.Selected if you only want to give access to specific sites.
-
Microsoft Graph > Sites.FullControl.All to give access to all sites, or
- Grant admin consent for the permissions.
Step 3: Get the Client ID
- Open your App registrations and go to the Overview page.
- Copy the Application (client) ID.
- This is your Client ID in BEAMON setup.
Step 4: Create a Client Secret
- In your App Registration, go to Certificates & secrets.
- Generate a new client secret.
- Copy the Value shown. This is your Client Secret.
Step 5: Find the Site ID (Optional)
If you want to restrict BEAMON’s access to a single site:
-
Open a browser and navigate to one of the following URLs:
https://<tenantname>.sharepoint.com/sites/<sitename>/_api/site/id https://<tenantname>.sharepoint.com/teams/<sitename>/_api/site/id
- Copy the Site ID from the API response.
Step 6: (Optional) Grant Access to a Specific Site
If you’re using Sites.Selected, you’ll need to temporarily create an admin app to grant access to a site.
Create a Temporary Admin App
- Register another app with Graph API Application Permission: Sites.FullControl.All.
- This app will only be used by IT for granting authorization to a site.
- It can be deleted afterwards.
- Generate a bearer token using this admin app:
-
POST
https://login.microsoftonline.com/<TENANT ID>/oauth2/token - Body (x-www-form-urlencoded):
grant_type=client_credentialsclient_id=<admin app client id>client_secret=<admin app client secret>resource=https://graph.microsoft.com
-
POST
Auth URL:
https://login.microsoftonline.com/<TENANT ID>/oauth2/v2.0/authorize
Access Token URL:
https://login.microsoftonline.com/<TENANT ID>/oauth2/v2.0/token
Grant Access with the Bearer Token
Make a POST request to grant the target BEAMON app access:
POST https://graph.microsoft.com/v1.0/sites/<SharePoint_SiteID>/permissions
Content-Type: application/json
Authorization: Bearer <Bearer Token>
{
"roles": ["write"],
"grantedToIdentities": [{
"application": {
"id": "xxxxxxxx", // Target Application’s Client ID
"displayName": "xxxxxx" // Target Application’s Display name
}
}]
}This grants the target app read or write access to the selected site.
Troubleshooting
Here are some common issues and how to resolve them:
-
Error: Invalid Site ID
- Double-check that you are using the correct URL format when retrieving the Site ID.
- Ensure
<tenantname>and<sitename>are spelled exactly as in SharePoint.
-
Error: Insufficient privileges
- Confirm that the app registration has the correct Microsoft Graph permissions.
- Ensure admin consent has been granted.
- If using Sites.Selected, verify that the temporary admin app successfully granted access.
-
Token or authentication errors
- Verify that the Client ID, Client Secret, and Tenant ID entered in BEAMON match those from the Entra portal.
- If a client secret has expired, generate a new one and update it in BEAMON.
-
BEAMON cannot access SharePoint after setup
- Check whether a Default Site ID was set. If so, access will be limited to that site only.
- If no Site ID was configured, verify that Sites.FullControl.All permission was granted.
If issues persist, contact your IT administrator to review app registration settings and permissions in Entra.
Occasionally asked questions
Why do I get the “SharePoint connection issues detected. General exception while processing” error when setting up the integration?
This error can occur during the SharePoint integration setup if the application registered in Entra ID is missing the Sites.Selected permission, or if this permission has been added but admin consent has not yet been granted. Both steps must be completed by your SharePoint or Microsoft 365 administrator before the connection can succeed.
How to fix
- In the Entra portal, open the App registrations section.
- Locate the application you registered for the SharePoint integration.
- Go to API permissions.
- Confirm that Sites.Selected is listed under Microsoft Graph permissions.
- If it’s missing, click Add a permission → Microsoft Graph → Delegated permissions → select Sites.Selected → click Add permissions.
- Grant admin consent:
- Click the Grant admin consent button for your tenant.
- Confirm the action when prompted.
- Return to the SharePoint integration setup in BRYTER, enter your credentials, and click Test connection again.