This documentation is for WSO2 Carbon 4.4.3. View documentation for the latest release.
Page Comparison - Configuring Secondary User Stores (v.3 vs v.4) - Carbon 4.4.3 - WSO2 Documentation
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Log in to the management console and click Add under the User Stores sub menu in the Main menu.
  2. The Add New User Store page opens.


    Note: You cannot update the PRIMARY user store at run time, so it is not visible on this page.

  3. In the User Store Manager Class list, select the type of user store you are creating.


    Tip: Click on the table below and use the arrow keys on your keypad to navigate through it.

    User store managerDescription

    Use ReadOnlyLDAPUserStoreManager to do read-only operations for LDAP user stores.


    Use ReadWriteLDAPUserStoreManager for LDAP user stores to do both read and write operations.


    Use ActiveDirectoryUserStoreManager to configure an Active Directory Domain Service (AD DS) or Active Directory Lightweight Directory Service (AD LDS). This can be used only for read/write operations. If you need to use AD as read-only, you must use org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.


    Use JDBCUserStoreManager for JDBC user stores. The JDBC user store can be configured for read-only mode or read/write mode using the following property: <Property name="ReadOnly">false/true</Property>.

    Use CarbonRemoteUserStoreManager to configure another WSO2 product based on WSO2 Carbon as the user store manager.


    Note: Any secondary user stores that are configured to the WSO2 product are not supported. However, the primary user store of the WSO2 product you point to works as expected.

    You can also populate this drop-down list with custom user store manager implementations by adding them to the server. A sample custom user store manager can be found in the repository.

  4. Enter a unique domain name with no underscore (_) characters, and optionally enter a description for this user store.

  5. Enter values for the properties, using the descriptions in the Descriptions column for guidance. The properties that appear vary based on the user store manager class you selected, and there may be additional properties in an Optional or Advanced section at the bottom of the screen. See the related topics for descriptions of user store propertiesFor information on the properties that are used when defining user stores, see Properties of User Stores.


  6. Ensure that all the mandatory fields are filled and a valid domain name is given and click Add

  7. A message appears saying that the user stores are being added. 


    Note: The above message does not imply that the user store is added successfully. It simply means that the server is attempting to add the new user store to the end of the available chain of stores.

  8. Refresh the page after a few seconds to check the status. 

  9. If the new user store is successfully added, it will appear in the User Stores page. This can be viewed at any time by clicking List under User Stores in the Main menu.

  10. After adding to the server, you can edit the properties of the new secondary user store and enable/disable it in a dynamic manner.


    • When you configure multiple user stores, you must give a unique domain name to each user store in the <DomainName> element. If you configure a user store without specifying a domain name, the server throws an exception at start up.
    • If it is the configuration of a super tenant, save the secondary user store definitions in <PRODUCT_HOME>/repository/deployment/server/userstores directory.
    • If it is a general tenant, save the configuration in <PRODUCT_HOME>/repository/tenants/<tenantid>/userstores directory.
    • The the secondary user store configuration file must have the same name as the domain with an underscore (_) in place of the period. For example, if the domain is, name the file as  wso2_com.xml.
    • One file only contains the definition for one user store domain.

Related topics