This guide covers the optional organisation service. Configuration, console and API paths refer to your Lolly Work instance. The packaged console keeps its release-matched copy of this guide.
Connect a SharePoint document library or a OneDrive folder, and its files appear in the Lolly Work catalog for the groups you choose. Lolly Work reads through Microsoft Graph with an app you register, and never writes to the library.
What you need from Microsoft
- An Entra ID app registration with the delegated Graph permissions
Files.Read.Allandoffline_access. A single-tenant app is fine: setoptions.tenantto your tenant id or domain. - The drive id of the library or OneDrive (Graph
GET /drives/…). - The client id and secret are yours;
lw providers authcaptures the refresh token. Microsoft also allows public (PKCE) apps, which leave outclientSecret.
Credential shape
The OAuth credential, captured rather than typed:
{ "clientId": "…", "clientSecret": "…", "refreshToken": "…" }lw providers auth acme-o365OAuth sources explains the consent step.
instance.json / lw providers add
{
"id": "acme-o365",
"kind": "o365",
"label": "Acme SharePoint",
"options": { "driveId": "b!aBcD…", "tenant": "acme.onmicrosoft.com", "itemPath": "Brand/Approved" },
"exposure": { "groups": ["marketing"] }
}| Option | What it does |
|---|---|
driveId (required) | The library or OneDrive to read. |
tenant | Your tenant id or domain. Use common only for a multi-tenant app. |
itemPath | A folder under the drive root to federate. |
Verify
lw providers auth acme-o365
lw providers health acme-o365Notes / limits
- One folder level. Listing reads only the files directly in the drive root or in
itemPath. Subfolders are not walked, so files inside them are not federated. - Search covers the whole drive. It ignores
itemPath; exposure still decides which results a member sees. - Short-lived download links. Graph's
@microsoft.graph.downloadUrlis pre-authenticated and short-lived, so Lolly Work fetches it on each request and streams the file. API calls and paging cursors are pinned tograph.microsoft.com; the download follows Graph's short-lived redirect to its storage host.
Use as an offboarding destination
Export permitted DAM originals and supporting records, upload them with OneDrive or SharePoint's own tools, then connect the selected drive and folder using this guide. Lolly Work reads this source and does not write the migration into the drive. Listing reads one folder level, while search covers the whole drive: test both inventory and exposure. Keep required metadata and history separately and update references for the new identities.
The path chooser compares this route with self-hosted Lolly Work storage and other destinations, with open-source options first.