This guide walks you through giving Simpplr safe, limited access to one specific SharePoint document library, instead of your entire SharePoint site. This is called BYOA, which stands for Bring Your Own Application.
In simple terms: you will create a small "application" inside Microsoft that acts as a trusted go between. You will then tell that application it is only allowed to read files from one document library, nothing else on your SharePoint site.
Note: You do not need to be a developer to complete this. You just need admin access to your Microsoft Entra ID (formerly called Azure Active Directory) and to your Simpplr instance.
As you go through the steps, you will collect a few important values. Keep a notepad open and save each one as you get it:
Client ID (also called Application ID)
Client Secret
Tenant ID
Document Library ID (also called Drive ID)
⚠️ Important: Some of these values, especially the Client Secret, can only be viewed once. If you lose it, you will need to create a new one. More on that below.
This step creates the "application" that Simpplr will use to connect to SharePoint.
Go to the Azure Portal.
Open Microsoft Entra ID.
Click App registrations.
Click New registration.
Give your application a name, then complete the registration.
Tip: Choose a name that clearly identifies what this application is for, for example "Simpplr SharePoint Connector." This will make it easier to find later.
Think of a client secret as a password for your application. Simpplr will use it to prove it is allowed to connect.
Open the app registration you just created.
In the left hand menu, click Manage, then click Certificates & secrets.
On the Certificates & secrets screen, make sure you are on the Client secrets tab.
Click New client secret.
Copy the secret that appears and save it somewhere secure right away.
⚠️ Important: The client secret is shown only one time. Once you leave this screen, you cannot view it again. If you forget to copy it, you will need to create a new one and update your settings in Simpplr.
This step tells Microsoft exactly what your new application is allowed to do. Microsoft Graph is simply the system that lets applications like this one talk to services such as SharePoint.
In the left hand menu (still under Manage), click API permissions.
Click Add a permission.
Under the Microsoft APIs tab, click the Microsoft Graph card.
Choose Application permissions.
In the search bar, type the following permission name exactly:
Lists.SelectedOperations.Selected
Select that permission from the list, then click Add permission.
Click Grant admin consent for the tenant. This button appears near Add a permission.
Note: Granting admin consent confirms that your organization approves this application having the permission you just added.
Before setting up SharePoint itself, you need to register your Microsoft domain in Simpplr.
In your Simpplr instance, go to Settings, then Applications.
Click the Integrations tab.
Click Domains.
Scroll down to the Microsoft section and click Add domain name.
In the window that appears, select Microsoft SharePoint, then click Add Domain.
You will be taken to the Microsoft Entra login page. Log in, and your domain will be added automatically.
Now you will connect the application you created earlier to Simpplr.
In your Simpplr instance, go to Settings, then Applications.
Click the Integrations tab, then click File Management.
Scroll to the bottom and select the checkbox next to Microsoft SharePoint.
Select Use your own app connection for public file links.
Fill in the following fields using the values you saved earlier:
Tenant ID: enter your Microsoft Tenant ID from your Microsoft App that you created
Client ID: enter your Application ID from your Microsoft App that you created
Client Secret: enter the client secret you copied in Step 2
Click Save.
The next few steps use a free Microsoft tool called Graph Explorer. You will use it to look up two IDs, and to grant your application access. You do not need to write any code, just paste in a web address and click a button.
You can find it here:
https://developer.microsoft.com/en-us/graph/graph-explorer
Before you begin, log in. In the top left corner of the page, click the profile icon and sign in with your Azure Portal account.
To grant access to a specific document library, you first need to identify the SharePoint site it belongs to using its Site ID.
Go to the Azure Portal home page and click the menu icon in the top left corner.
Click Microsoft 365 Admin. This will take you to the Microsoft 365 admin center.
Click the menu icon in the top left corner again.
Click SharePoint. This will take you to your SharePoint instance.
Search for the site you want to grant access to, and note its exact name.
Copy the hostname from your SharePoint URL. For example, if your SharePoint URL is https://smplrdev.sharepoint.com/sites, the hostname is smplrdev.sharepoint.com.
Note the site path, which is the site name with spaces removed. For example, a site called "Document Library Site" becomes DocumentLibrarySite.
Open Graph Explorer (https://developer.microsoft.com/en-us/graph/graph-explorer) in a new tab, and make sure you are logged in.
Make sure GET is selected, then enter the following in the address box, replacing {hostname} and {site-path} with your own values:
https://graph.microsoft.com/v1.0/sites/{hostname}:/sites/{site-path}
For example, using the sample values from earlier:
https://graph.microsoft.com/v1.0/sites/smplrdev.sharepoint.com:/sites/DocumentLibrarySite
Confirm the API version is set to v1.0, then click Run Query.
In the response, find the line that starts with "id":. Copy the value after it. This is your Site ID, and it will look something like this:
smplrdev.sharepoint.com,c8e6ebf5-1cfe-4337-ab54-308ab8b9482d,6088f2b2-0975-4077-8d5c-ae9b557e4242
Note: Save this Site ID somewhere safe. You will use it in the next step to find your document library.
In Microsoft's terminology, a document library is called a "drive." This step helps you find the ID of the specific library you want Simpplr to access.
Go back to Graph Explorer. If you were logged out, sign back in using the profile icon in the top left corner.
Make sure GET is selected, then enter the following in the address box, replacing {site-id} with the Site ID you copied in Step 6:
https://graph.microsoft.com/v1.0/sites/{site-id}/drives
Confirm the API version is set to v1.0, then click Run Query.
The response will show a list of document libraries. Find the entry whose name matches the library you want, then copy its id value.
For example, in this sample response, the document library named "BYOA Testing" has an id of b!9evmyP4cN0OrVDCKuLlILbLyiGB1CXdAjVyum1V-QkIRaplQTxz9S7SRm1yObgEe.
Tip: If more than one library appears in the list, check both the name field and the webUrl field carefully before copying, to make sure you have the right one.
This is the final step. Here you tell Microsoft that your application is allowed to read files from this one specific library, and nothing else.
Stay in Graph Explorer, and change GET to POST.
In the address box, enter the following, replacing {drive-id} with the Drive ID you copied in Step 7:
https://graph.microsoft.com/v1.0/drives/{drive-id}/root/permissions
For example:
https://graph.microsoft.com/v1.0/drives/b!9evmyP4cN0OrVDCKuLlILbLyiGB1CXdAjVyum1V-QkIRaplQTxz9S7SRm1yObgEe/root/permissions
Click the Request Body tab, and paste in the following, replacing <CLIENT_ID> with your application's Client ID and <APPLICATION_NAME> with your application's name: /
{ "roles": ["read"], "grantedToV2": { "application": { "id": "<CLIENT_ID>", "displayName": "<APPLICATION_NAME>" } } }
For example:
{ "roles": ["read"], "grantedToV2": { "application": { "id": "ca80fe18-7621-40f1-8894-9a93e4d482b7", "displayName": "Doc Library App" } } }
Click Run Query to send the request.
Once this completes successfully, your application has read only access to this one document library. It cannot see or access anything else on your SharePoint site.
You're done! Simpplr can now safely pull files from this document library.
Note: To whitelist multiple document libraries, update the Drive ID for each library and run the above API request separately for each one.
What happened: Client secrets are only shown once, at the moment they are created. Microsoft does not store a copy you can view later.
What to do: Go back to Certificates & secrets and create a new client secret. Then update the Client Secret field in your Simpplr SharePoint settings with the new value.
What happened: This usually means the Lists.SelectedOperations.Selected permission was not added, or admin consent was not granted.
What to do: Go to API permissions and confirm that the permission has been added and that Grant admin consent for the tenant has been completed.
What happened: A SharePoint site can have more than one document library, so the response may list several.
What to do: Run the request GET https://graph.microsoft.com/v1.0/sites/{site-id}/drives again, and check the name and webUrl fields carefully to identify the correct library before copying its id.
What happened: This is usually caused by a typo in the request, or by leaving a placeholder (like <CLIENT_ID>) unreplaced.
What to do: Double check that your request is:
POST https://graph.microsoft.com/v1.0/drives/{drive-id}/root/permissions
and that roles is set to ["read"], and that both <CLIENT_ID> and <APPLICATION_NAME> have been replaced with your application's actual values.
Q: What does this setup actually do?
Ans: It gives your registered application read only access to one specific SharePoint document library, instead of your whole SharePoint site.
Q: Will the application be able to see my entire SharePoint site?
Ans: No. It can only read files in the one document library you specifically granted it access to.
Q: What level of access does the application get?
Ans: Read only access. It cannot edit, delete, or add files. This is set by "roles": ["read"] in the request body.
Q: Which Microsoft Graph permission do I need?
Ans: Lists.SelectedOperations.Selected. You add this under API permissions, and it needs admin consent for your tenant.
Q: Can I see my client secret again after I close the page?
Ans: No. It is shown only once. Save it somewhere secure the moment it appears.
Q: What information do I enter into Simpplr?
Ans: Under SharePoint, then File Management, you will enter your Client ID (Application ID), Client Secret, and Microsoft Tenant ID, then save.
Q: How do I find my Document Library (Drive) ID?
Ans: Use Graph Explorer to run GET https://graph.microsoft.com/v1.0/sites/{site-id}/drives, then find your library in the list and copy its id.
Q: Where do I actually run the final permission request?
Ans: In Microsoft Graph Explorer, using the POST request described in Step 8.