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

This space contains the code for the Office 365 Integration of XWiki. This extensions currently allows to:

  • embed Office365 documents from your drive or Sharepoint in an XWiki page, by URL or by searching the document in your drive (it does not search in sharepoint for now)
  • display Office365 drive results using an XWiki UI extension under the XWiki search results in the XWiki SOLR search engine

To try out this integration you can check the Office365 Macro which can be used with a url and does not need any configuration.

To configure the extension to be able to use the other features, you will need to get OAuth2 credentials:

Create Office 365 OAuth Credentials

You will need to create credentials on Office 365/Azure AD. This can be done in the Azure Portal, by registering a new application through the App registrations service. It might be necessary to be an admin in the organization.

It is necessary to get an Application ID (clientid), create a password (secret)
and set the redirect URI ( http://[your domain]]/xwiki/bin/view/Office365/OAuth (or https) )


Permissions need to be set on the Graph API like below:


Enter the credentials in XWiki Administration

You will need to enter your credentials and your tenant ID (either or the full ID) in the XWiki Administration

To be able to use the office365 macro and search for documents on your Office365 drive to embed in pages

Pages in this space

XWiki 14.10.13