WordPress – User Sync for Azure AD/B2C/Office 365 using Microsoft Graph APIs

WordPress – User Sync for Azure AD/B2C/Office 365 using Microsoft Graph APIs


User Sync from Azure AD Office365 to WordPress can be achieved by using our User Sync for Azure AD Office365 plugin. This plugin uses Microsoft Graph API to fetch all the user's profiles from the Active Directory to the WordPress database. Seamless support for advanced sync features like Bi-directional user sync, automatic user creation & deletion, integration with SharePoint, PowerBI, Office365, Microsoft teams, OneDrive, Azure AD Profile Picture Sync and integration. In addition to this we also support 3rd party plugins like woo-commerce, Learndash, BuddyPress, Memberpress, Paid Membership etc.

Pre-requisites : Download And Installation

To configure Azure AD / Azure B2C with WordPress, you will need to install the User Sync for Azure AD Office 365 plugin:

User Sync for Azure AD Office 365 provides user synchronization from Azure/AzureB2C/Office365 to the WordPress. The plugin uses Microsoft graph API to fetch users from Microsoft Azure active directory.

 Tested with 5.8.2
Steps to configure User Sync for Azure AD Office365 plugin:

If you have already configured Azure AD application then skip step 1 and goto step 2.

1. Configure the Azure AD App registration

Follow the steps below to configure Azure AD Sync plugin:

  • Log in to Azure AD Portal https://portal.azure.com/ as an Administrator.
  • You will be represented with the home screen of Azure Active Directory.
  • Under the Azure Services section, select Azure Active Directory.
  • Azure AD user sync with WordPress - Home Screen
  • In the left tab, under the Manage section, select App registrations tab.
  • Azure AD user sync with WordPress - App registraton
  • Click on the New Registration option.
  • Azure AD user sync with WordPress - App registraton
  • Assign the Display Name in the name field and choose the account type.
  • In the Redirect URI field, provide the URL of your WordPress site and click on Register button.
  • Azure AD user sync with WordPress - Account type
  • After the registration of an application, Azure AD assigns an unique application ID to your application.
  • Naviagte to the Overview tab, in the left pane.
  • Copy the Application ID and the Directory ID, this will be your Client ID and Tenant ID.
  • Azure AD user sync with WordPress - Application
  • From the left navigation pane, navigate to the Certificates & secrets tab.
  • Click on New client secret. Enter the description and expiration time and click on the ADD option.
  • Azure AD user sync with WordPress - Certificate and Secrets
  • Copy the value of Secret Key. This will be your Client Secret Key.
  • Azure AD user sync with WordPress - Client Secret
miniorange img Add API Permissions to your Azure AD Application:
  • Go to API Permissions from the left navigation pane and click on Add a permission option.
  • Azure AD user sync with WordPress - API permission
  • Select Microsoft Graph under the Microsoft APIs tab.
  • select Application Permissions and search for the User.
  • Azure AD user sync with WordPress - App permission
  • Under User select User.Read.All permission and click on the Add Permissions button.
  • Azure AD user sync with WordPress - permissions
  • Click on Grant admin consent for Default Directory and click on Yes on grant admin consent confirmation.
  • Azure AD user sync with WordPress - Admin consent

You have successfully configured Azure AD app to achieve User Sync into your WordPress Site.

2. Configure User Sync for Azure AD Office365 plugin

  • Navigate to the User Sync for Azure AD Office365 plugin.
  • Under the Manage Application tab, paste the information from the Azure AD App.
  • Application ID Paste the Application ID from Azure AD App.
    Client Secrets Paste the Client Secret from the Azure AD App.
    Redirect URI Enter the URL of your WordPress site.
    Tenant ID Paste the Directory ID from Azure AD App.
    Azure AD user sync with WordPress - Manageapp
  • Click on Save button to save the configurations.

3. Test Connection

  • Enter UserPrincipleName / ID of any user of your Azure AD Application and click on the Save button.
  • Click on the Test Configuration to check if correct user attributes are getting for the entered UserPrincipleName value.
  • Azure AD user sync with WordPress - Test configuration
  • On successful configuration you will be to able to view the attributes recieved from Azure AD.
  • Azure AD user sync with WordPress - App registraton

4. Sync User to WordPress Database

  • Navigate to the WordPress User Sync tab.
miniorange img Sync an individual user
  • Enter UserPrincipleName / ID of any user of your Azure AD application.
  • Click on the Sync button to sync your Azure AD user to your WordPress site Database.
  • Azure AD user sync with WordPress - testconfig
miniorange img Sync all users
  • Click on the Sync All Users button to sync your all Azure AD users to your WordPress site Database.
  • Azure AD user sync with WordPress - Sync All Users
  • The user will be created in the WordPress. If the user already exists then it will get updated.
  • Now to view the user attributes which you have sync from Azure AD to WordPress. Navigate to the Users tab in the plugins section.
  • Azure AD user sync with WordPress - App registraton

You have successfully configured User Sync for Azure AD Office365.


Additional Resources


If you are looking for anything which you cannot find, please drop us an email on samlsupport@xecurify.com

Why Our Customers choose miniOrange WordPress Single Sign-On (SSO) Solutions?


24/7 Support

miniOrange provides 24/7 support for all the Secure Identity Solutions. We ensure high quality support to meet your satisfaction.

Sign Up

Customer Reviews

See for yourself what our customers say about us.
 

Reviews

Extensive Setup Guides

Easy and precise step-by-step instructions and videos to help you configure within minutes.

Watch Demo


We offer Secure Identity Solutions for Single Sign-On, Two Factor Authentication, Adaptive MFA, Provisioning, and much more. Please contact us at

 +1 978 658 9387 (US) | +91 77966 99612 (India)   samlsupport@xecurify.com

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com