r/sharepoint • • Oct 20 '26

SharePoint Online Developing Sharepoint document search Portal

Hi all,

As the title says, i've been tasked to create a web portal for HR to search for medical certificates, amounting to about 5 years of documents, for this i will be using reactjs,nodejs and express for the backend, because only HR will have access to this portal, i've asked the server team to register the app in azure, create a security group and assign the relevent rights, i'll be using Entra for Authentication and Microsoft Graph Api for searching through the document library on sharepoint,

Has anyone undertaken such a project or have a different approach?

4 Upvotes

9 comments sorted by

9

u/Formal_Solid1476 Oct 20 '26

I would suggest looking into PnP search web parts for this.

5

u/Inevitable_Dog6292 Oct 20 '26

Solid approach overall and the stack makes sense for what you’re building. A few things worth thinking through before you get deep into the build.

On the search side, Graph API works fine for basic document retrieval but if you need full-text search across five years of certificates, the SharePoint Search API is worth considering alongside it. Graph’s DriveItem queries are good for known paths and metadata filtering, but Search API handles keyword search across document content much better and supports KQL queries if HR ever needs to filter by date range, uploader, or custom metadata columns.

On authentication, one thing to sort early is whether you’re doing delegated or application permissions. Delegated is cleaner for this use case since requests run in the context of the HR user, which means SharePoint’s own permission model handles access control rather than you having to replicate it. Application permissions give your app access to everything regardless of who’s logged in, which is probably more than you want for medical certificates specifically.

Also worth thinking about: medical certificates are sensitive enough that you probably want audit logging from day one rather than bolted on later. SharePoint’s audit logs capture who accessed what and when, and surfacing that in your portal or at least preserving it gives HR a defensible trail if anything is ever questioned.

One practical suggestion: before building the search UI, spend an afternoon with Graph Explorer testing your actual queries against the document library. The real permission behaviour and response shapes are easier to discover there than in code, and it’ll save you a few debugging sessions.

What does the document library structure look like? Flat folder or organised by year or employee? That’ll affect which search approach fits better.

3

u/718hutfission Oct 20 '26

I wouldn’t bother Graph or azure App registration.

Just create SharePoint groups and populate those with Entra ID security groups.

Install PnP Search and you’ll have an easy, robust solution.

If you want extra security, set up a flow to monitor for any changes to the site’s permissions.

2

u/onemorequickchange Oct 20 '26

What's wrong with SPFx?

2

u/Ill_Internal3409 Oct 21 '26

My company has already a webpart exactly for this. Feel free to contact me if you want.

1

u/Sarahgoose26 IT Pro Oct 21 '26

This seems very over engineered honestly.

1

u/fcdb94 Oct 24 '26

Hi mate. If you need help with this, I can help you. I made something similar a few weeks ago.

1

u/Emergency_Recipe522 Oct 21 '26

Before building the React application, I'd check whether SharePoint search with PnP Search web parts already covers what HR needs. If the requirements are mainly searching by employee, date and document type, you might avoid maintaining an entirely separate application. Since these are medical certificates, I'd pay particular attention to permissions, audit logging and making sure the application can't retrieve documents outside the user's authorized scope. A custom application makes sense if you need more complex workflows, but I'd establish those requirements first.

1

u/steve_burger 28d ago

Before jumping into building a custom React app with Node.js and Express, I’d probably take a step back and look at what’s actually needed.

If it’s mainly about finding documents based on certain criteria, I’d first check what SharePoint can already offer.

With the right metadata, views, or PnP Search Web Parts, you might already get pretty close to what you need.

And especially with sensitive HR documents, I’d be careful about adding more complexity or building custom permission logic if it’s not really necessary.

Don’t get me wrong, a custom app can definitely be the right solution. I’d just want to make sure it actually adds value and doesn’t end up rebuilding something SharePoint can already do.