Skip to content

OneDriveOptions

Property Type Description
authority? string & object | "common" | "organizations" | "consumers" Who can sign in: ‘common’ (personal, work and school accounts, the default), ‘organizations’ (work and school only), ‘consumers’ (personal only), or a tenant’s id or domain (that organisation only).
clientId string The application (client) id of your app registration in Microsoft Entra ID.
label? Localized The name shown in the Open menu and on “Save to …”. Default “OneDrive”, or “SharePoint” with sharePoint.
readOnly? boolean Only open files: asks for read permission only, and offers no saving back or copies.
redirectUri? string Where the sign-in popup returns: a page of yours that runs @ruled/plugin/onedrive/redirect, registered as a single-page application redirect URI. Default: /onedrive-redirect.html on the page’s origin.
sharePoint? object Pick from a SharePoint site, such as “https://contoso.sharepoint.com/sites/finance”, rather than the person’s OneDrive.
sharePoint.baseUrl string -