Note: This plugin has not been updated and is no longer compatible with WordPress 5.9+, so is no longer recommended.
How to enable Single Sign-On (SSO) to WordPress using Azure AD and the OneLogin SAML SSO plugin.
This requires Azure AD Premium (P1 or P2) in addition to your normal Office 365 subscription.
Install the OneLogin SAML SSO plugin.

Paste the Azure AD app details into the plugin:


Map user attributes from Azure AD to WordPress. Use email rather than UPN if you want to allow Guest accounts to log in.
Enable Create user if not exists, Update user data, and set Match WordPress account by: E-mail.
Tick Enable at the top of the plugin and save. You can still log in using wp-login.php as a fallback.
