The challenge
A knowledge base first built for one IT department needed to work for any department, without a separate permission system to maintain.
What we built
We built a web part that lists a site's document libraries as soon as it is added, with no configuration. Setup creates its configuration list, and branding is a simple setting.
It has no permission logic of its own. Access is granted to SharePoint groups, and cards, folders, documents, counts and search all follow those permissions. It works in full-width page sections, as a full-page app and in Teams.
Outcome
Working. Counts and search results can lag behind the search index by minutes, and folders with more than 5,000 items directly inside them show the first 5,000.