Office 365 Macro

Last modified by superadmin on 2023/06/22 08:15

Table of Content


This macro displays an Office 365 document using the Office 365 platform. To use this macro you need to configure the Office365 accesses in the administration.

This macro can be used either to embed by URL or by searching the document in Office 365 and storing the associated data in the document.

The viewer using is the Office 365 viewer for office documents. For PDFs we cannot use the Office 365 viewer because of a limitation on Office 365 which does not allow to embed their viewer for PDFs. We use the XWiki PDF Viewer if it is installed in XWiki, otherwise we do not display anything.

Macro Syntax

This is the syntax to search document in Office 365. You will be shown a search box to search for a document. You can select which document to embed.

{{office365 /}}

This is the syntax to embed by URL. You just need to copy paste the URL that is in your browser bar when you are viewing or editing an Office 365 document:

{{office365 url="" /}}


Embedding by URL cannot work for PDF documents. However PDF documents can be embedded by searching them and requires the PDF Viewer macro installed in the Wiki.


Show examples

Created by Kerwin Olfers on 2017/01/01 00:00
XWiki 14.10.13