ملاحظة: Lolly Work
This guide covers the optional organisation service. Configuration, console and API paths refer to your Work instance. The packaged console keeps its release-matched copy of this guide.
Federate a SharePoint document library or OneDrive read-only via Microsoft Graph. OAuth2 (BYOT) - see the shared OAuth onboarding.
What you need from Microsoft
- An Entra ID (Azure AD) app registration with delegated
Files.Read.Allandoffline_access(Graph). A single-tenant app is fine - setoptions.tenantto your tenant id/domain. - The drive id of the SharePoint library / OneDrive (Graph
GET /drives/…). - BYOT: client id/secret are yours; refresh token via
lw providers auth. Microsoft allows public (PKCE) apps too - thenclientSecretis omitted.
Credential shape
The OAuth JSON blob - captured, not typed:
{ "clientId": "…", "clientSecret": "…", "refreshToken": "…" }lw providers auth acme-o365instance.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"] }
}options.driveId(required);options.tenant(id or domain -commononly for multi-tenant apps);options.itemPathscopes to a folder under the drive root.
Verify
lw providers auth acme-o365
lw providers health acme-o365Notes / limits
- Graph
@microsoft.graph.downloadUrlis pre-authenticated + short-lived (expiringUrls) - fetched per request, streamed. API calls and@odata.nextLinkpagination cursors are host-pinned tograph.microsoft.com; the download itself follows Graph's short-lived redirect to its storage host. - Supports the exit (materialize → cutover). Does not accept published exports.
See also: OAuth onboarding · catalog · permissions.