Support for multitenant apps

Use this guide if you want to configure the Multitenant capability of Azure Active Directory apps supported by the WordPress + Office 365 plugin. You can use a multitenant app to allow accounts from any organizational directory (rather than only your own) to access your WordPress website.

Before you start

  • You are fully aware of the consequences of allowing users in any Azure AD tenant to sign in to your application after consenting to use their account with your application.
  • You must already have configured the single sign-on capability of the WordPress + Office 365 plugin.
  • You are a Global Administrator for your company‚Äôs Office 365 tenant / Azure AD directory (or have at least the ability to edit the Azure Active Directory App registration that was created previously when the single sign-on capability was configured).
  • You are an Administrator for your WordPress website.

App registration

  • In Azure Portal click the 'hamburger' (icon with three horizontal lines in the upper corner) to open the menu.
  • Navigate to Azure Active Directory > App registrations.
  • Select the App registration that you created when you configured the single sign-on capability of the plugin.

Authentication

  • Click Authentication from the 'App registration' menu on the left.
  • Scroll down to Supported account types.
  • Check Accounts in any organizational directory (Any Azure AD directory - Multitenant).
  • Click Save.

Please note that if you'd like to add users with personal Microsoft accounts (MSAL e.g. Outlook, Skype, Xbox) that you need to manually update the manifest as explained on the page itself.

User registration

  • Navigate to the plugin's wizard WP Admin > WPO365 and click User Registration.
  • Check the option Allow users from other tenants.
  • Click Save configuration.

Test and Troubleshoot

To test your multitenant app you can log on with a (test) user that is a member of a different Azure AD tenant. 

  • Enable the plugin's Debug log (see https://docs.wpo365.com/article/19-enable-debug-log).
  • Navigate to the plugin's wizard WP Admin > WPO365 > ... > Debug.
  • Check Log ID token.
  • Now try to sign in again with the (test) user that is a member of a different Azure AD tenant.
  • Navigate back to WP Admin > WPO365 > ...Debug and click Show all.
  • Search for the ID token in the log and check to see if it is complete.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.