What the XWiki Office365 Integration does with OneDrive
Staff often keep procedures, forms and policies in Microsoft 365, and they want those documents findable from XWiki without copying them into the wiki. The Office365 Integration (Pro) from the XWiki Store is the connector for that job: it searches OneDrive files and embeds Office 365 documents in wiki pages by URL. It is listed as a Pro connector, so confirm with XWiki SAS whether your support plan covers it before you plan around it. The Store listing is the source for the capabilities described here, and your team must confirm them against the exact version you install, since search scope, permissions handling and embed behavior can change between releases.
The connector is separate from the Collabora and ONLYOFFICE connectors. Those two edit attachments stored inside XWiki through a document server, so the file lives in the wiki. The Office365 Integration does not make a Microsoft 365 file editable as an attachment. The file stays in OneDrive or SharePoint, and the wiki shows or links to it. That distinction decides where the document is owned, who can change it, and which system holds its version history, so it should be settled before pilot users are invited.
Before rollout, check three things in your own environment: which Microsoft 365 account or application registration the connector uses, whether a reader without access to the source file can still see its name or preview in search results, and how the embed behaves for users who are not signed in to Microsoft 365 in the same browser. Record the answers in the design notes. If the Store listing and your tests disagree, the test result governs the deployment.
What you need before installing the Office365 Integration
The Office365 Integration sits between your XWiki server and Microsoft 365, so the wiki version, the Microsoft tenant, the network path and the licensing decision all have to line up before installation. Confirm each item below with your team and the extension documentation so the install does not stall on access or permissions.
A supported XWiki line
Choose the stable, long term support (LTS) or intermediate LTS line before you install. At the time of research, the official Docker image tags were 18.8.0 for stable, 17.10.14 for LTS and 18.4.7 for the intermediate LTS. Check the extension's compatibility notes against the line you pick, and confirm the current tags in the Docker library file before you pin a version.
Docker library fileA Microsoft 365 tenant and app registration
Someone with rights in your Microsoft Entra ID tenant must create or approve an app registration for the wiki. Confirm who can do this in your organization, whether admin consent is required, and which OneDrive and document scopes the extension requests. Do not assume the permission set; take it from the extension documentation in the XWiki Store.
HTTPS on the XWiki instance
Microsoft redirects users back to the wiki after sign-in, so the XWiki address must use HTTPS with a certificate your users trust. Plan the public or internal DNS name, the certificate source and renewal before the install. A plain HTTP test address will not match the redirect settings you register in the app registration.
Outbound access to Microsoft endpoints
The XWiki server must reach Microsoft sign-in and Microsoft Graph endpoints over the network. Ask your network team whether a proxy, firewall or egress policy blocks these hosts, and whether DNS resolves them from the server. Confirm the exact endpoint list with the extension documentation, because restricted egress is a common cause of failed searches and embeds.
A license decision for the connector
The Office365 Integration is listed under XWiki Pro, so decide whether your organization will buy a Pro subscription or otherwise confirm the license terms before rollout. Ask XWiki SAS which tier and user count apply to your organization, and whether the connector is included in the subscription you choose. The XWiki Pro page lists the connector, but confirm current terms in writing.
XWiki Pro pageChoosing between search, URL embedding and attachment editing
Search is the right path when readers already keep their working files in Microsoft 365 and need to locate them from the wiki without moving them. The Office365 Integration (Pro) lists OneDrive files that the signed-in user can access, so the wiki acts as a finder rather than a storage location. The file stays in OneDrive, and Microsoft 365 remains the system that holds the copy and applies its own sharing rules.
- Where the file lives: Only in OneDrive. XWiki does not copy the document into the wiki database or attachment store.
- Who holds the copy: The Microsoft 365 tenant, under its retention, sharing and data residency settings.
- Access behavior: Confirm whether results respect each user's own OneDrive permissions, and test with two accounts that have different access.
- Hosting implication: The wiki server needs to reach Microsoft 365 endpoints, so network egress and the connector's authentication setup belong in the plan.
- Licensing: The connector sits in the Pro tier of the XWiki Store, so confirm the license covers the instance before rollout.
Before committing, ask the connector's vendor or your own test environment exactly which permissions the search uses and whether results are filtered per user.
URL embedding suits pages that point readers to a specific Microsoft 365 document, such as a current policy, a shared template or a project plan maintained by another team. The wiki page holds a reference to the document and displays it through the connector, while the document itself stays where its owners maintain it. Changes made in Microsoft 365 appear wherever the link is embedded, which avoids duplicate copies but also means the wiki depends on that document remaining available.
- Where the file lives: In Microsoft 365. The page stores only the address and display settings.
- Who holds the copy: The document owner in Microsoft 365, so version history and edits sit outside XWiki.
- Review risk: An embedded document can change after a wiki page is approved. Record the version or owner expectation in the page if the content is controlled.
- Broken references: A moved or deleted file breaks the embed, so assign an owner to check important links.
- Access: Readers need their own Microsoft 365 access to see the content, so check how unauthorized users see the page.
If the wiki is a compliance record, confirm how the connector handles links that were valid at approval time and later change.
Attachment editing is a different path. The office file is uploaded to XWiki as an attachment, so the wiki holds the stored copy and its attachment history. Real-time co-editing needs a separate document server, and the Collabora and ONLYOFFICE connectors cover that path in detail, including server setup, network requirements and format conversion. This option fits teams that want documents to live under wiki permissions and retention rather than in a cloud drive.
- Where the file lives: In XWiki attachment storage, inside your infrastructure.
- Who holds the copy: Your organization, through the wiki database and file store and their backups.
- Extra component: An editing server (Collabora Online or ONLYOFFICE Document Server) must be deployed, sized and kept updated.
- Attachment history: Versions are kept by the wiki, so plan storage growth and retention.
- Next read: The XWiki and Collabora Online document editing and XWiki and ONLYOFFICE topics explain that path step by step.
Before choosing this path, confirm which system is the approved record for the documents and whether auditors expect wiki-side version history.
The three options are not interchangeable, because each one changes where a document is stored and who can change it. The decision usually comes down to ownership: if Microsoft 365 is the record, search and embedding keep one copy; if the wiki is the record, attachment editing keeps documents under wiki control. Mixing paths on one page can create confusion about which version is current, so the choice should be made per content type and written into the wiki's guidance.
- Single source of truth: Choose the path that matches the system already governing the document.
- Mixed estates: Some teams may need search for shared drives and attachments for controlled procedures. Document both.
- Version control: Embedded documents follow Microsoft 365 versions. Attachments follow XWiki versions.
- Data protection: Map each path to your retention, residency and access review processes before rollout.
- Vendor scope: DeployOpen plans and implements these connectors inside your environment, but Microsoft 365 licensing and tenant settings remain your responsibility.
Ask the implementation team for a written matrix of content types mapped to each path before any connector is enabled.
How to configure OneDrive search and document embedding
This sequence takes the Office365 Integration from a test instance to a verified setup in which permitted users can search OneDrive and embed Microsoft 365 documents in wiki pages, and users without rights to a source file are denied access. Each step closes with a check you can record before the setup moves toward production.
Install the Office365 Integration in a test instance
Install the Office365 Integration (Pro) from the XWiki Store into a separate test XWiki instance, not production. Confirm the extension appears in the installed extensions list with the version you intend to run, and that the wiki starts and loads normally afterward. Keep a record of the XWiki version and the extension version, because the Microsoft 365 registration and the extension settings are tied to what you test. Check: the extension is listed as installed on the test instance and the home page renders without errors.
Register the application in the Microsoft 365 tenant
A Microsoft 365 administrator registers an application in the Microsoft Entra admin center for the tenant that holds the OneDrive content. Grant only the Microsoft Graph permissions that the extension documentation names for file search and reading, and ask the administrator to record whether those permissions need admin consent. Create a client secret or certificate according to your credential policy and store it in your secrets manager. Check: the registration lists the exact permissions named in the extension documentation, and the admin has recorded the client ID, tenant ID and secret expiry date.
Enter tenant and client settings in XWiki administration
In the XWiki administration for the test instance, open the Office365 Integration configuration and enter the tenant identifier, the client ID and the client secret from the registration. Save the settings and do not reuse the production secret here. Confirm which Microsoft 365 account or service identity the extension authenticates as, because that identity determines what the search can return. Check: the configuration saves without a validation error, and a test connection or first search request returns a response rather than an authorization failure.
Decide which users and groups can search and embed
Before enabling broad use, decide which XWiki groups may run OneDrive searches and which may insert embedded Microsoft 365 documents into pages. Map those groups to the rights the extension respects, and write the decision down with the reason for each group. Remember that search results depend on the identity the extension uses, so confirm whether results are filtered per user or shared across all users of the instance. Check: a written access matrix exists, and a test user in an excluded group cannot see the search or embed controls.
Test a search with a test account
Sign in to the test instance as a test account that is permitted to search and that has access to a known OneDrive folder in the test tenant. Run a search for a file name you placed there and confirm the result lists the file with the expected name and location. Repeat the search with a term that matches nothing and confirm the empty result. Check: the known file appears in results for the permitted account, and the search does not return files outside the test folder.
Embed one document by URL in a test page
Create a test page in the XWiki test space and use the Office365 Integration to embed the test document by its Microsoft 365 URL. Save and view the page as the permitted test account, and confirm the document renders or displays its preview as the extension documentation describes. Record the URL form that works, because embedding by URL depends on the sharing link type used. Check: the embedded document displays correctly on the saved page for the permitted account.
Confirm access for a user without rights to the file
Sign in as a test account that is permitted to use the wiki but has no permission on the source OneDrive file, then open the test page with the embedded document. Confirm the document does not display its content, and check whether the search results omit the file. Note any case where the extension shows metadata or a preview the user should not see, and treat that as a finding to resolve before production. Check: the unauthorized account cannot view or search the protected file through the wiki, and the result is recorded in the test log.
How Microsoft 365 identity and XWiki permissions interact
A search or embed shows a Microsoft 365 file only to the identity that the connector uses to fetch it, so the file's own sharing rules still decide what a reader sees. XWiki page rights decide who can open the page that holds the embed or search results. Those two layers are separate. A reader can therefore open a wiki page, see its heading and surrounding text, and still find that the embedded document or the OneDrive search hits are blank, partial or an access error. Plan for this before pages go live, because the wiki's rights model will not reveal Microsoft-side restrictions on its own.
The first thing to settle is which identity the Office365 Integration uses when it talks to Microsoft 365. If the extension signs each request as the person viewing the page, results follow that person's OneDrive and SharePoint access. If it uses a single application identity with broad permissions, results follow that identity, and a wiki reader could see files that the Microsoft side would not show them directly. Confirm which model the version you deploy uses, and which Microsoft permission scopes it requests, in the extension documentation. Do not assume either model from the feature list alone.
Once the identity model is confirmed, test with at least three accounts: one with no access to the test files, one with read access only, and one owner or editor. Check search results and embedded views for each, on a page whose XWiki rights are set to match a realistic audience. Repeat the test after any change to Microsoft sharing or group membership, because the results may not refresh immediately. Record the findings, and make the owner of the Microsoft 365 tenant and the XWiki administrator agree who is responsible for each control before rollout.
Which fields and identities map between OneDrive and XWiki
This table compares the objects a team will reason about when OneDrive files appear in XWiki search and embedded pages, and the identities that connect Microsoft 365 users and groups to wiki users and groups. Where the extension does not document a mapping, the row says so, and the version you install should be confirmed before you rely on it. Treat every unconfirmed row as an open item for the design review.
| Object | OneDrive or Microsoft 365 side | XWiki side and what to confirm |
|---|---|---|
| File name and path | OneDrive file name and folder path as stored in the user's drive | Shown in the search result from the Office365 Integration. Confirm in the installed version whether the path or only the name appears, and whether results link back to the file. |
| Document URL to macro parameter | Shareable or web URL of the Office 365 document | Passed as the URL parameter of the embed macro. Confirm which URL forms (sharing link, web view link) render, and whether links expire or need sign in. |
| Microsoft 365 user to XWiki user | User identity in Microsoft Entra ID, with the UPN or mail address | The Office365 Integration does not map identities to wiki accounts. Confirm whether authentication is handled by a separate SSO extension and which claim identifies the wiki user. |
| Microsoft 365 group to XWiki group | Security or Microsoft 365 group membership | Used only if page rights are granted by group. Confirm that the installed version reads group membership at all, since the extension may not map groups to XWiki groups. |
| Permissions on the file | Sharing permissions set in OneDrive or SharePoint | Wiki page rights do not change file permissions. Confirm whether a reader without Microsoft 365 access can see an embedded document, and plan for the difference. |
| File version | Current version of the file in OneDrive, with its version history | Embedding by URL usually shows the current version at view time. Confirm whether a pinned version can be referenced, and record the document version in the page text if it matters for audit. |
| Search scope | Files the signed-in user can access in OneDrive | Confirm whether search runs with the reader's own token or a service account, since that decides which files appear for each wiki user. |
Security settings for OneDrive links in wiki pages
Embedding a Microsoft 365 document in an XWiki page moves access decisions across two systems: the Microsoft tenant that holds the file and the wiki that displays it. The controls below are ones your team designs, configures and verifies on both sides, rather than behavior you should assume the connector provides.
Least-privilege Microsoft app permissions
Grant the app registration used by the Office365 Integration only the Microsoft Graph permissions the search and embedding functions need, and avoid broad directory or mailbox scopes. Ask whether the connector can run with delegated rather than application permissions, because that choice changes what a compromised credential can read. Record each granted permission and its admin consent in your change log, then review the list whenever the connector is upgraded.
Client secret rotation and storage
The app registration secret is a credential that lets XWiki query your tenant, so store it in a secrets manager or protected configuration rather than in page content, wiki objects or version-controlled files. Set an expiry date on every secret, rotate it on a schedule your security team sets, and test that the wiki still works after each rotation. Check that wiki administrators who can read configuration objects are a short, named list.
Restricting who can add the embedding macro
Any user who can edit a page may be able to paste a OneDrive or Office 365 link and expose that file to readers of the page, so decide which spaces and groups may use the embedding macro. Enforce this through XWiki rights on the pages and macros your organization controls, and review pages that contain the macro during periodic checks. Test the restriction with an ordinary editor account, not only an administrator.
Sharing settings on source files
An embedded link displays the file to whoever the file's own sharing settings allow, so a file shared with anyone who has the link can reach people who can read a wiki page but are not in the intended audience. Check the sharing scope of each source file or folder, prefer named groups inside your tenant, and avoid anonymous links for internal documents. Re-check sharing when a file moves or when a folder's permissions change.
Audit logging on both sides
Investigating who viewed or changed an embedded document needs records from the wiki and from Microsoft 365. Enable XWiki's page history and any access or event logging your deployment supports, and ensure Microsoft Purview or the tenant's audit log captures file access and sharing changes. Confirm the retention period of each log against your policy and decide who reviews them.
HTTPS enforcement for the wiki and the connector
Serve the wiki only over HTTPS, redirect plain HTTP, and confirm that the callback URL registered in the Microsoft app matches the HTTPS address exactly. Mixed-content or downgraded connections can expose session cookies and tokens, so test the complete sign-in and embedding flow from a clean browser after each change to the reverse proxy or certificate.
Common failures when searching or embedding OneDrive documents
This table lists the failures teams most often hit when searching OneDrive or embedding Microsoft 365 documents in XWiki pages, with the cause and fix for each. Read each row against the extension logs in XWiki and the sign-in logs in Microsoft Entra ID, since the log entry usually points to which side is failing. The main takeaway is that most failures come from consent, permissions or network paths, not from the wiki page itself.
| Failure | Likely cause | Fix and where to check |
|---|---|---|
| Search returns no OneDrive files | The Microsoft app registration lacks admin consent for the file permissions the connector needs, or the signed-in user has no access to the files. | Confirm consent and granted permissions in the Entra admin center. Check the Microsoft sign-in logs for consent or permission errors, then test with a user who owns the file. |
| Embedded document shows an access error for some readers | Document sharing in Microsoft 365 is separate from XWiki page rights. Readers of the page may not have been granted access to the file. | Compare the file's sharing settings with the audience of the page. Grant access in Microsoft 365 or move the reference to a file the audience can open. Check the Microsoft sign-in logs for denied access. |
| Connector cannot reach Microsoft endpoints | Outbound traffic from the XWiki server is blocked by a firewall, proxy or egress policy, so token requests or Graph calls fail. | Allow outbound HTTPS to the Microsoft login and Graph endpoints from the XWiki host, or configure the proxy settings used by Java. Check the Tomcat and XWiki logs for connection timeouts or TLS errors. |
| Connector does not work after an XWiki upgrade | The connector version was not matched to the XWiki line in use, so classes or APIs it depends on are missing or changed. | Install the connector build listed for your XWiki version in the XWiki Store. Check the XWiki extension logs for class-loading or missing-method errors after startup. |
| Users expect to edit Office files in the wiki | The Office365 Integration searches and embeds documents by URL. It does not provide co-editing of attachments, which is handled by the separate Collabora or ONLYOFFICE connectors. | Set expectations in the page guidance and decide whether a document editing connector is also needed. Link readers to the file in Microsoft 365 for editing, and document the boundary for the team. |
| Search results are stale or incomplete | Files were recently moved, renamed or shared, or the search scope does not include the location where the team stores the files. | Confirm the search scope and retest with a known file. Ask the team how often content moves and document a check for stale links during reviews. |
What a DeployOpen engagement covers for this integration
A DeployOpen engagement for the Office365 Integration starts by confirming that the XWiki version in use supports the connector and that the connector build matches it, since the Office365 Integration is listed in the XWiki Store as a Pro extension and its compatibility is tied to the XWiki release line. The work then moves to the Microsoft side: registering an application in Microsoft Entra ID with the client's tenant administrators, choosing the redirect and consent settings the connector needs, and agreeing who holds the client secret or certificate and how it is rotated. Each of these steps needs a named owner on the client's side before technical work begins.
Next, DeployOpen configures and tests the permission model. This means checking which Microsoft Graph scopes the connector requests, whether they are delegated (acting as the signed-in reader) or application-level (acting as the app), and what each one exposes to wiki users. For a deployment that searches OneDrive, the test plan should include a reader who can see a file, a reader who cannot, and a file that is shared by link only. The team should also confirm how embedded documents behave when the viewer lacks access, because an embed does not change the permissions on the source file.
Finally, DeployOpen writes a short embedding standard for authors covering which document types to embed, how to copy a sharing URL, and when to attach a file to the page instead of linking to OneDrive, then hands over operations: admin runbook, secret rotation steps and a re-test after each XWiki or Microsoft change. Cost and duration depend on the number of Microsoft tenants in scope, the permission model chosen, and whether the client's Microsoft team controls the app registration or expects DeployOpen to work within it. A quote follows from the written scope, so ask for each of these items to be listed separately.
Questions buyers ask about XWiki and OneDrive integration
Does the Office365 Integration let people edit OneDrive files inside XWiki?
No. The Office365 Integration searches OneDrive files and embeds Office 365 documents in wiki pages by URL, so readers view the document in the page. Editing happens in the document's own Microsoft 365 application. If your team needs to edit Word, Excel or PowerPoint files attached to XWiki pages, that is a different path, handled by the separate Collabora or ONLYOFFICE connectors that edit attachments. Confirm which of these fits your workflow before you scope the work.
Do we need XWiki Pro to use the Office365 integration?
The XWiki Store lists the Office365 Integration as a Pro extension, so plan on an XWiki Pro subscription or confirm the current licensing terms with XWiki SAS before you commit. XWiki Pro is listed on the XWiki Pro page alongside other connectors and support options. Subscription tiers are based on user counts (Starter, Basic, Business and Enterprise), and XWiki SAS states that cloud and on-premises pricing is the same. Ask for the exact tier and license cost in writing.
What do we need from our Microsoft 365 administrators?
The integration depends on a Microsoft Entra ID app registration that grants XWiki permission to call Microsoft Graph for file search and document access. Your Microsoft administrators must agree on which permissions are granted, whether consent is given tenant-wide or per user, and which tenants and sites are in scope. Expect them to review the requested permissions against your data access policy. Ask us to document each permission, why it is needed and who approves it before any consent is granted.
How long does setup take with several tenants or strict permissions?
Duration depends mainly on how many Microsoft 365 tenants are involved, how many app registrations and consent steps your administrators need, and how long your change approval process takes. Each additional tenant or permission review adds coordination work, and approvals often take longer than the technical configuration. We do not publish timelines for this integration. Request a written schedule in the quote that lists the tenant count, consent steps and approval points as separate milestones.
Can our own team set this up without a partner?
Yes, if your team already runs XWiki, can register applications in Microsoft Entra ID and has administrators who can grant consent. The work involves installing the extension, creating the app registration, configuring the XWiki side, and testing search and embedding. The main risks are permission scope errors and missing consent, which are easier to avoid with a documented plan. A partner is most useful when several tenants, strict approvals or an audit trail are required. Ask for a scope that separates the work your team keeps from the work you outsource.
How do we test access with different users?
Build a test matrix before go-live. Include at least one user from each group that should see OneDrive content, one user who should not, a guest or external account if your tenant allows them, and a user with no Microsoft 365 license. For each user, check whether search returns the expected files, whether embedded documents open, and whether documents the user cannot access are blocked. Repeat the matrix after any permission change. Ask us to deliver the test cases and results as part of the engagement.
What breaks most often after go-live?
The most common problems are expired or revoked consent, changes to tenant conditional access policies, and embedded links that point to files moved or deleted in OneDrive. Users may also see unexpected results if the permissions granted are broader than their document access rules. Plan monitoring for failed sign-ins and review the permissions list when Microsoft 365 or XWiki changes. Confirm with the extension documentation and your administrators how these changes are reported before relying on them.
How a wiki search or embed reaches OneDrive
The diagram starts in the reader's browser, which sends a search or page view to XWiki running in the client's own infrastructure. XWiki with the Office365 Integration then calls Microsoft identity to obtain access for the signed-in user, and retrieves file results or resolves a document URL against Microsoft 365. Team members should verify which identity and permissions the connector uses, where tokens are stored and whether each reader only sees files they can already access in OneDrive.
Search and embed requests cross from the client's XWiki into Microsoft 365.
How DeployOpen scopes and delivers the OneDrive integration
DeployOpen starts by agreeing the scope of the Office365 Integration in writing before any configuration begins. The written scope names which Microsoft 365 tenants and OneDrive locations are in play, which wiki spaces may search or embed Microsoft 365 documents, and which document types and link patterns are allowed. It also records what is explicitly out of scope, such as editing attachments, which belongs to the separate Collabora or ONLYOFFICE work. Because the connector is a Pro extension in the XWiki Store, the scope should also confirm the licensing and support tier that covers it, and the client should confirm that tier with XWiki SAS before the quote is final.
The permission model is reviewed with the client's security team and its Microsoft 365 administrators before anything is connected. The question to settle is whose delegated access the connector uses when a reader searches OneDrive or opens an embedded document, and whether that matches what the reader could already open in Microsoft 365 directly. Administrators should confirm the app registration, consent scope and any conditional access policies that apply to the wiki's sign-in path. DeployOpen then tests with several user profiles, such as an owner, a member with shared access, a user with no access and a guest, and records what each profile can find and view. Any mismatch is fixed before go-live, and the results form part of the handover evidence.
Delivery ends with documentation for two audiences: wiki authors and the team that will run the instance. Author guidance covers how to find a file, how to embed it by URL, what happens when the owner later moves or unshares the file, and which content must not be embedded. The operations documentation covers the configuration, the consent and secret rotation steps, and the test profiles so the checks can be repeated after upgrades. Ongoing support for connector updates, XWiki version changes and periodic access reviews can be run as a DeployOpen retainer, with the support path and response expectations written into that agreement.

