Skip to main content

Connect a remote user store

WSO2 Identity Platform allows you to connect a remote user store and onboard users and groups from it. The user store connection can either be with read-only or read/write permissions. Administrators can then start managing access to business applications in WSO2 Identity Platform for these users and groups. This guide explains how you can set up a remote user store for your WSO2 Identity Platform organization.

User store connections​

WSO2 Identity Platform connects to a remote user store through a user store agent that runs in your network. The connection supports both read/write and read-only user stores, and offers full management capabilities.

Switch connections from read-only to read/write

If you have connected a user store before 7th February 2023, you will only have read-only access for the user store. If you need read/write access for your user store in WSO2 Identity Platform,

  1. Delete the existing remote user store.
  2. Register a remote user store again with Read/Write access type.
  3. Set up the remote user store with the latest user store agent.

Register and configure a user store in WSO2 Identity Platform​

The following guides explain how you can register and set up a remote user store for your WSO2 Identity Platform organization.

Prerequisites​

Ensure your system has the following before you proceed.

  • An on-premise user store. Currently, WSO2 Identity Platform supports:

    • Lightweight Directory Access Protocol (LDAP)
    • Active Directory (AD)
  • To run the user store agent:

    • Install JAVA 8 or JAVA 11.
    • Configure JAVA_HOME.
System requirements
  • Recommended hardware requirements

    CPU cores2
    Storage500 MB of free space on disk.
    Operating systemThe connector can run on Windows or Linux.
    RAM1 GB
  • Connectivity methods

    User store agent
    ProtocolWeb socket
    Port443

Register a remote user store​

To configure a remote user store for your organization:

  1. On the WSO2 Identity Platform Console, go to User Attributes & Stores > User Stores.

  2. Click Connect userstore to open the following:

    Register remote user store to WSO2 Identity Platform
  3. Enter the following details about the user store.

    User store nameA unique name to identify your user store.
    DescriptionA description for the user store.
    Remote user store typeSelect your user store type.
    Access typeSelect the access type of the user store. It can be any one of the following:
    - Read-only
    - Read/Write

    Note: The access type of the user store cannot be modified after creation.
  4. Click Next and under Configurations, provide the properties of your user store.

    Configure remote user store properties
    User attributes
    UsernameThis attribute is used as the user identifier. Provide an attribute that identifies users in your on-premise user store.
    For the best experience, use a username that satisfies validation rules in the Username validation section.
    User IdThis attribute is used to uniquely identify a user entry. Provide an attribute that uniquely identifies a user entry in your user store.
    warning
  5. Click Finish to complete the registration.

note

You can register only one remote user store per organization without an enterprise tier account. If you want to connect a different user store, delete the existing user store and register a new one.

If you're on the enterprise tier and need to connect more than one user store, please contact our support team through the WSO2 cloud support portal or email us at [email protected]. We'll guide you through the process.

Set up the remote user store​

After registering the user store, you'll be redirected to the Setup Guide of the user store agent. To assemble and configure the user store agent bundle, follow the steps below.

  1. Download the user store agent.

  2. Configure the properties and connection details of the on-premise user store by following these steps:

    1. Unzip the downloaded user store agent.

    2. Go to the root directory of the user store agent and open the deployment.toml file.

    3. Update the configurations according to your user store settings. A sample configuration is given below for the reference.

      [user_store]
      type = "ldap"
      base_dn = "dc=wso2,dc=org"
      connection_url = "ldap://localhost:10391"
      connection_name = "cn=admin,dc=example,dc=org"
      connection_password = "adminpassword"
      user_id_search_filter = "(&(objectClass=inetOrgperson)(uid=?))"
      user_name_list_filter = "(objectClass=inetOrgperson)"
      user_id_attribute = "uid"
      user_name_attribute = "cn"
      user_name_search_filter = "(&(objectClass=inetOrgperson)(cn=?))"
      password_hash_method = "PLAIN_TEXT"
      group_search_base = "ou=Groups,dc=example,dc=org"
      group_name_attribute = "cn"
      group_name_search_filter = "(&(objectClass=groupOfNames)(cn=?))"
      group_name_list_filter = "(objectClass=groupOfNames)"
      group_id_attribute = "gid"
      membership_attribute = "member"
      note

      Refer remote agent properties for the complete list of agent configurations.

  3. Return to the WSO2 Identity Platform Console and, click Generate Token to create an installation token. The installation token is essential to run the user store agent.

    warning
    • Copy the installation token and save it in a safe location. You won't be able to see it again!
    • This token has no expiry time, but in case you lose or forget it, you can regenerate an installation token.
  4. To start the user store agent, navigate to its root directory and run one of the following commands based on your operating system:

    sh wso2agent.sh

    Enter the installation token generated in the previous step when prompted.

(Optional) Run the user store agent as a background process
  1. Create a file named accessToken in the root directory of the agent.

  2. Add the installation token obtained from the previous step.

  3. Run the user store agent.

    sh wso2agent.sh start

What's Next​

Was this page helpful?