This documentation is for WSO2 Identity Server 5.2.0. View documentation for the latest release.
Page Comparison - Counting users and roles using Management Console and Admin Services (v.11 vs v.12) - Identity Server 5.2.0 - WSO2 Documentation

Versions Compared

Key

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

...

  1. Download the product from the WSO2 product page.
  2. Add the below property inside <UserStoreManager class="org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager"> configuration in <IS_HOME>/repository/conf/user-mgt.xml.

    Code Block
    languagexml
    <Property name="CountRetrieverClass">org.wso2.carbon.identity.user.store.count.jdbc.JDBCUserStoreCountRetriever</Property>

    Note: For this example, a JDBC User store is used as the primary user store

  3. Start the server.

Once you are done with the configurations, you can count the users and roles using one of the following ways:

...

  1. Change the HideAdminServiceWSDLs property in <IS_HOME>/repository/conf/carbon.xml to false to get access to the WSDL's of the admin services.

    Code Block
    languagexml
    <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
  2. Access the WSDL of UserStoreCountService service by browsing https://localhost:9443/services/UserStoreCountService?wsdl. If the WSDL is loading, access the methods of the service through SoapUI. Here, you will have access to additional methods (CountByClaimsInDomain, countClaims) than from the Management Console. 

Note
Currently

By default,

this feature supports only JDBC User Stores. But users have the capability to extend this feature by writing their own class and implementing the correct interfaces

only JDBC user store implementations support this service but the functionality can be extended to LDAP user stores or any other type of user store as well.