Search Results :

×

User Provisioning between two Drupal websites

The User Provisioning & Sync Module allows seamless user synchronization between two Drupal websites. It enables users to log into multiple Drupal sites using the same credentials and keeps user information updated across sites. The module also supports integration with any SCIM compliant Identity Provider (IdP), including custom providers.

  • Download the module:
    composer require 'drupal/user_provisioning'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange User Provisioning using the search box.
  • Enable the module by checking the checkbox and click on Install button.
  • Configure the module at
    {BaseURL}/admin/config/people/user_provisioning/overview
  • Install the module:
    drush en user_provisioning
  • Clear the cache:
     drush cr
  • Configure the module at
    {BaseURL}/admin/config/people/user_provisioning/overview
  • Navigate to Extend menu on your Drupal admin console and click on Install new module button.
  • Install the Drupal User Provisioning and Sync module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on Install button.
  • Configure the module at
    {BaseURL}/admin/config/people/user_provisioning/overview

In a two-site Drupal setup, one site acts as the SCIM Server (Server Site) and the other as the SCIM Client (Client Site). The SCIM Client is responsible for sending user related operations such as create, read, update, and delete (CRUD) to the SCIM Server. This means any changes made to user accounts on the Client Site are synchronized and reflected on the Server Site. This configuration helps maintain consistent and centralized user data across both Drupal sites.

Note and Contact Us - SSO between two WordPress sites

Note: You will require the Premium Version of the module to set up Drupal as an SCIM server.


  • Navigate to the User Provisioning tab of the module and click on the Configure button under the Changes from Provider to Drupal (SCIM Server) section.
Drupal User Provisioning - SCIM Server - Click configure button
  • Copy the SCIM Base URL and SCIM Bearer Token. (Keep them handy, as they will be required to configure Drupal as a SCIM Client.)
Drupal User Provisioning - SCIM Server - copy SCIm Server & SCIM Client
  • Go to the User Provisioning tab of the module and click the Configure button under the Changes from Drupal to Provider (SCIM Client) section.
Drupal user provisioning - select changes from drupal

  • Turn on the Enable SCIM Client API Integration toggle and paste the copied SCIM Base URL and Bearer Token into the SCIM 2.0 Base URL and SCIM Bearer Token text fields, respectively.
  • Once done, click the Save and Test Credentials button.
Drupal user provisioning - Enable toggle

  • If the test is successful, you’ll see a success message.
Drupal-SCIM-Client-Drupal-Click-Save-and-Test-Credentials

  • After successfully testing the configuration, scroll down to the Attribute Mapping section.
  • Select the Drupal User Attribute you want to map to the corresponding SCIM Provider Attribute, then click the Save mapping button.
  • Once done, click on the Next Step.
Drupal user provisioning - Attribute Mapping

  • The User Provisioning & Sync module supports three types of provisioning:
    • Manual/On-Demand Provisioning: In Manual/On-Demand Provisioning, users are created, updated, deactivated, or deleted by the admin as needed.
    • Automatic Provisioning: With Automatic Provisioning, when you create, update, or delete a user on one Drupal site, the same changes happen automatically on the other site. It keeps both sites in sync without manual work.
    • Scheduler-based Provisioning: This allows you to perform CRUD operations on any Drupal user in your provider during the CRON run.
  • Choose the Provisioning Types based on your preference.
Drupal user provisioning - Attribute Mapping

  • Select the Provisioning Operations (create, update, deactivate, delete) as needed.
Drupal user provisioning - Attribute Mapping

  • This feature allows provisioning of users who have any of the selected roles. Only those users will be sent to the Drupal (server) site; others will be skipped.
Drupal user provisioning - Role filter

  • This feature allows you to send user roles from Drupal as groups to other Drupal (server) site.
  • Note and Contact Us

    Note: Default roles of Drupal will not be synced.


  • Click on the All Done button.
Drupal user provisioning - Group provisioning

  • Click the Perform Manual Sync button under the Manual Provisioning column.
Drupal user provisioning - perform manual on demand provisioning

  • Search for the user you want to provision to the Drupal (server) site, then click the Submit button.
Drupal user provisioning - perform manual on demand provisioning

  • Once the user is successfully provisioned to the application, a success message will be displayed.
Drupal user provisioning - perform manual on demand provisioning

  • Let's check whether the user has been created/provisioned on the Drupal (server) site. Follow the steps below to find the created user:
    • From the left panel, click the People tab.
    Drupal user provisioning - Automatically user created

  • Automatic Provisioning will help you to provision users based on any of the following events:
    • Admin Interface: When admins or authorized users manually create, update, or delete a user’s account through the Drupal admin panel.
    • User Account Change: When users create, update, or delete their own information using the user/{user_id}/edit page or a custom form.
    • 3rd Party Modules: When a user is created or updated on the Drupal site through third-party modules, apps, or custom code.
  • For example, let’s see how automatic provisioning works using the Admin Interface:
    • Navigate to the People tab (admin/people) in the top navigation bar of the Drupal Client site and click on the +Add user button.
    Drupal user provisioning - add user

    • Fill in the user details, then click the Create new account button.
    Drupal user provisioning - Enter user details

    • Let's check whether the user has been created/provisioned on the Drupal (server) site. Follow the steps below to find the created user:
      • From the left panel, click the People tab.
      Drupal user provisioning - Automatically user created

    Congratulations! You’ve successfully provisioned users between the two Drupal sites.

    If the provisioning was not successful, please contact us at drupalsupport@xecurify.com. Kindly include a screenshot of the error window, and we will assist you in resolving the issue and guide you through the setup.

ADFS_sso ×
Hello there!

Need Help? We are right here!

support