Embed SharePoint OneDrive Library/Documents/Files

Description

This plugin enables seamless integration between WordPress and Microsoft SharePoint/OneDrive. Easily embed documents, folders, and entire libraries directly into WordPress pages or posts. Additionally, sync files from SharePoint or OneDrive to the WordPress media library for reuse across your site.

The plugin supports both SharePoint Online and SharePoint On-Premise environments, OneDrive for Business, and OneDrive Personal accounts. With secure OAuth 2.0 authentication, dynamic access control, and compatibility with major WordPress forms, membership, and eCommerce plugins, this solution is perfect for business, education, and enterprise environments.

🔗 Live Demo & More Info: Microsoft SharePoint OneDrive Integration

📺 Watch How It Works:

Highlights

  • Embed SharePoint/OneDrive folders & files directly into WordPress
  • Advanced access controls & role-based permissions
  • Form submission sync to SharePoint lists
  • Works with both Online and On-Premise SharePoint
  • Gutenberg block and shortcode support

Features

Embed SharePoint/OneDrive Documents
– Display PDFs, Word docs, Excel sheets, videos, and images from SharePoint/OneDrive.
– Sync documents into the WordPress media library for use with ACF or page builders.
– Use shortcodes to embed any document anywhere on your site.

Powerful Shortcode Generator
– Generate secure shortcodes for public or restricted views.
– Set individual permissions for different WordPress users and roles.
– Allow preview, download and upload access for the embedded folders and documents.
– Select from Grid, List or Table View for the embedded files.
– Embed images, videos in gallery view.

Access Control & Permissions
– Restrict access based on user roles, email domain, WooCommerce plans, or membership level.
– Secure embedded files using dynamic URL to prevent direct file URL access from WordPress.

Automated Sync & Form Integration
– Sync Gravity Forms, Contact Form 7, or Fluent Forms submissions to SharePoint lists or folders.
– Automatically convert form data into PDF and store in SharePoint.
– Create WordPress posts/pages based on SharePoint data updates.

User Profile & Metadata Sync
– Sync SharePoint user attributes like “About Me,” “Skills,” etc.
– Create new WordPress users from SharePoint list entries.
– Keep profiles updated in both platforms.

Advanced File Management
– Upload, edit, delete, and preview SharePoint/onedrive files from WordPress without storing them locally.
– Use the WordPress dashboard to manage SharePoint/OneDrive directories.

Enhanced Search & Views
– Search SharePoint files using metadata or full-text.
– Display libraries in list, grid, or table view.
– Provide document preview in popup or new tab.

Notification & Alert System
– Notify users of file uploads, updates, or new assignments.
– Send automatic alerts to SharePoint users or WooCommerce customers.

Supported Applications
– SharePoint Online & OnPremise
– OneDrive Enterprise & Personal

Shortcode Embedding
– Embed SharePoint Site as Shortcode
– SharePoint Drive as Shortcode
– File/Folders as Shortcode
– Individual Document (PDF / DOC / PPT / Excel / PPT / Video ) in Preview or Edit Mode

File/Folder Action
– Preview in SharePoint / OneDrive
– Popup Display
– Download / Upload / Search

Look & Feel
– List / Grid / Lightbox / View
– Sorting based on Standard SharePoint Columns
– Filters for file types, custom column values and date-time.

WP Posts Synchronization
– Sync SharePoint/onedrive files to WordPress media library as an attachment.
– Sync to WordPress Custom Post Types ( WP CPT Sync ).
– Maintain SharePoint/OneDrive folder structure using WordPress Taxonomies and Terms.
– Assign WordPress tags to the files and folders.

SharePoint Artifacts
– Sync Custom Columns, News, Articles, Events & Lists.

3rd Party Integrations
– ACF ( Advanced Custom Fields )
– Gravity Forms
– Formiddable Form
– Contact Form 7
– WooCommerce

Support & More

Screenshots

  • Automatic App Connection Settings
  • Manual App Configuration
  • SharePoint File & Folder Preview
  • Shortcode Generator View
  • Embedded Library Display on WordPress Page

Blocks

This plugin provides 2 blocks.

  • Sharepoint Library
  • Sps Custom Cta

Installation

From WordPress.org

  1. Download the plugin from the WordPress repository.
  2. Upload the embed-sharepoint-onedrive-documents folder to your /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.

From the WordPress Dashboard

  1. Go to Plugins > Add New.
  2. Search for Embed SharePoint OneDrive Documents.
  3. Install and activate the plugin.

For Any Assistance

FAQ

How do I configure the plugin?

Refer to the plugin setup guide for basic configuration or email our support team for personalized help at office365support@xecurify.com.

Getting “Token type is not allowed” error?

Please follow the resolution guide here:
Token Type Error Resolution

Can I control who accesses embedded documents?

Yes, access can be restricted by user roles, email domains, logged-in status, WooCommerce purchases, or membership plugins.

Does it support SharePoint On-Premise?

Yes, the plugin works with both SharePoint Online and On-Premise versions.

Reviews

03 Aprel 2025
This worked great for a year and then I had a bug. Their support team responded within hours with the solution. The bug was on my server, not the plugin.
26 Mart 2025
I have had the pleasure of working with Sachin Boshnoi, Saurabh Jilgilwar, Manish Chopra, Nabhishek Singh, Keshav Agrawal. They worked with me on a near impossible solution to a requirement that many could not help me with. They even supported me on weekends due to the urgency. All i can say is Excellent product and Excellent Support.
26 Mart 2025
We had an issue in getting the plugin to work and the support we received from Keshav is exceptional. Well done.
24 Mart 2025
This plugin does exactly what we expected it to do, and we couldn’t be happier with the results! The integration with SharePoint is seamless, making it incredibly easy to embed documents, libraries, and files directly into our WordPress site. Both our team and the end client are fully satisfied with the functionality and ease of use. What truly stands out is the outstanding support. Despite being in completely different time zones, the response time was impressively fast, and every question we had was answered with precision and clarity. It’s rare to find such great assistance. Highly recommended for anyone needing to embed SharePoint content effortlessly!
26 Fevral 2025
We recently worked with Keshav Agrawal to customize the SharePoint embed feature for our client, and I couldn’t be more pleased with the experience. We needed advanced customizations that aren’t available in the commercial version, specifically aimed at improving the searchability and indexing of documents. Keshav worked tirelessly every step of the way to ensure these were implemented seamlessly. His deep knowledge of the SharePoint API ensured flawless integration with WordPress, which was crucial for the success of the project. He was always communicative, quick to respond, and provided timely updates throughout the process. The project was delivered on time and fully met all of our client’s requirements. Keshav’s dedication and attention to detail made all the difference in delivering a successful solution. His support went above and beyond, and we couldn’t have done it without him. If you need expert assistance with customizations and integration, I highly recommend working with Keshav and the Mini Orange team. Great work, Keshav!
Read all 36 reviews

Contributors & Developers

“Embed SharePoint OneDrive Library/Documents/Files” is open source software. The following people have contributed to this plugin.

Contributors

“Embed SharePoint OneDrive Library/Documents/Files” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Embed SharePoint OneDrive Library/Documents/Files” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.4.5

  • Updated Readme and plugin version as per WP standards

2.4.4

  • Fixed issue with Navigation if default languages on SharePoint is not English.
  • Compatibility with WordPress version 6.8

2.4.3

  • Compatibility with php version 8.3

2.4.2

  • Compatibility with WordPress version 6.7
  • Fixed UI issues with WordPress theme twenty-twenty-five.
  • Fixed Issue with the capability checks.
  • Removed extra columns from the table menu.
  • Added support for the infinite scrolling for the documents.

2.4.1

  • Compatibility with WordPress version 6.7
  • Fixed UI issues with WordPress theme twenty-twenty-five.
  • Fixed Issue with the capability checks.

2.3.2

  • Compatibility with WordPress version 6.7
  • Fixed UI issues with WordPress theme twenty-twenty-five.

2.3.1

  • Fixed issue with the folders containing space in name
  • BugFIX for OneDrive Business libraries

2.3.0

  • Compatibility with WordPress 6.6
  • PHPCS Standards
  • Fortified sanitization and escaping checks
  • Fixed Security Warnings

2.2.9

  • Important bugfix in automatic connection.
  • Updated plugin description.

2.2.8

  • Fixed issue with the manual test connection.
  • Menu image included.

2.2.7

  • Fixed the preview for searched documents and resolved issues with breadcrumbs.
  • Added a search feature for OneDrive Personal, and displayed required permissions for connect and its justifications.
  • Implemented folder-specific search functionality.

2.2.6

  • Fixed a warning related to general exceptions encountered when connecting with new SharePoint users.
  • Display default drive size and resolved an issue where email IDs were not being displayed in the connection.

2.2.5

  • Resolved automatic connection issue and loading problems with default sites and drives.
  • Improved UI elements such as tooltips, connection dropdown, and preview documents/files tab.
  • Fixed refresh issue in the preview documents/files tab, particularly when connected with Personal OneDrive.

2.2.4

  • Fixed the issue with redirection after activation.
  • Major UI Fixes.
  • Fixed issue related to error code MO_SPS_ERROR_001.
  • Updated the setup guide.
  • Added a feature to display shortcodes for logged-in users with any role.

2.2.3

  • Made plugin compatible with the WordPress version 6.5.
  • Fixed the issue with settings in installed plugins section.

2.2.2

  • Fixed the issue with migration while connected previously with manual connection.
  • Fixed the issue with preview documents button in test connection window.

2.2.1

  • Fixed the issue with the migration feature and resolved all warnings.
  • Fixed minor bugs for the connection tab reload.
  • Fixed the issue with Breadcrumbs while connecting with Onedrive business.

2.2.0

  • Added support for Automatic Connection via SharePoint, OneDrive Personal and OneDrive Business.
  • New Banner design with book a meeting and forum link changes.

2.1.3

  • Made changes in the setup guide.
  • Added resource links for SharePoint / OneDrive integration knowledgebase.

2.1.2

  • Made plugin compatible with the WordPress version 6.4
  • Changes in UI and Search functionality.
  • Load default Site and Drive automatically.

2.1.1

  • Fixed the document embed view UI.
  • Added feature to preview and download files.
  • Enhanced the connection and search functionality.

2.1.0

  • Fixed an issue where folder name, breadcrumbs were not visible because of the theme

2.0.9

  • Added Search option for selecting the sites and drives
  • Fixed an issue where plugin used to throw critical error while activating the Elementor Pro License
  • Migrated localization scripts to inline js

2.0.8

  • UI Fixes.

2.0.7

  • Fixed scrolling UI problem in the plugin settings page.

2.0.6

  • Fixed blank screen issue in the settings page for languages like italian, russian, etc.

2.0.5

  • bug fix for js issue
  • notice for onedrive personal & business accounts.

2.0.4

  • Direct File Preview Module added.

2.0.3

  • Bug fix for error while loading js file in the plugin.

2.0.2

  • Bug fix for Update shortcode settings.

2.0.1

  • API framework migration from CSOM to Graph API.
  • Major UI changes.

1.1.3

  • Fixed an string compare issue with php7.2

1.1.2

  • Added feature to open files in SharePoint

1.1.1

  • Changed the configuration flow
  • added notes and descriptions for input fields
  • Client Secret validation and some UI fixes

1.1.0

  • Simplified Sharepoint Configuration
  • Bug Fixes

1.0.9

  • Search files & folders through document library.
  • Bug fixes for embed document library using Gutenberg block feature.
  • Bug fixes in SharePoint User profile mapping feature.

1.0.8

  • minor bug fix in support form

1.0.7

  • Add SharePoint library on WordPress pages/post using Gutenberg block.
  • Added support for custom document library folders other than Shared Documents.
  • Bug fixes for file names having special characters like {#,$,*,&,`,’}

1.0.6

  • shortcode support to embed SharePoint Online Library into pages/posts
  • Added a support for viewing documents from specific SharePoint site other than main site.
  • UI improvements

1.0.5

  • Updated setup guide

1.0.4

  • Document sync tab improvements
  • Bug Fixes

1.0.3

  • Added Support For Embedding Documents, Files

1.0.2

  • Manual user profile sync from SharePoint to WordPress.
  • User Profile Mapping (SharePoint -> WordPress)

1.0.1

  • Test SharePoint Online Connection
  • Fetch SharePoint Online User Attributes