This plugin lets you embed a OneDrive folder in WordPress using a shortcode.
Account support:
- This plugin supports OneDrive Personal (consumer Microsoft accounts) via Microsoft Graph.
Features:
- Embed a shared OneDrive folder as a browsable document library
- Breadcrumb navigation
- Search within the folder
- Open and download actions (configurable)
- Optional thumbnails/icons
- Access control modes (public, logged-in, roles)
Related links:
- Download the plugin from Wordpress.
- Activate the plugin through the 'Plugins' menu in WordPress.
- Go to Settings -> seljeDrive Document Library for OneDrive.
Microsoft OAuth setup (Microsoft Entra ID / Azure App Registration):
- Go to https://portal.azure.com/ and open:
Note: Many Personal (
outlook.com) accounts cannot sign in to
https://entra.microsoft.com/. Use the Azure Portal (
portal.azure.com) instead.
Microsoft Entra ID -> App registrations -> New registration
5. Set “Supported account types”:
- For OneDrive Personal (consumer Microsoft accounts):
Choose “Personal accounts only”.
If you see errors about a tenant being blocked due to inactivity (tenant lifecycle policies), switch to a different directory in the Azure Portal or create a new directory (tenant), then register the app there.
Note: This plugin uses the Microsoft identity platform v2 endpoints for Personal accounts (consumers).
Sharing note:
- Use a folder sharing link created from OneDrive Personal (typically a https://1drv.ms/... link).
-
The Microsoft account you connect in WordPress must have access to the shared folder link.
-
Add a Redirect URI:
-
Platform: Web
- Redirect URI: copy the “Redirect URI” shown on the plugin settings page and paste it here.
- Create a client secret and copy its value:
Certificates & secrets -> New client secret
Copy the secret VALUE immediately (not the Secret ID). Microsoft only shows the value once.
8. Configure API permissions:
API permissions -> Add a permission -> Microsoft Graph -> Delegated permissions
Add:
Then click “Grant admin consent” if shown.
9. In WordPress (plugin settings page), paste:
- Client ID (Application (client) ID)
- Client secret value
- Click “Connect Microsoft”, then create one or more libraries.