Monday, March 14, 2016

User Store Count with WSO2 Identity Server 5.2.0

This post is to provide details on one of the new functionalities introduced with WSO2 Identity Server 5.2.0, to be released soon. This feature comes with a service to count the number of users based on user names patterns and claims and also to count the number of roles matching a role name pattern in user store. By default this supports JDBC user store implementations only and provides freedom to extend the functionality to LDAP user stores or any other type as well.

How to Use?

A new property is introduced in user store manager configuration named 'CountRetrieverClass', where we can configure the class name that carries the count implementation for particular user store domain.

Using Service

The functionality is exposed via a service named 'UserStoreCountService' which provides relevant operations as below.

Separate operations are provided to get the counts of a particular user store or the whole user store chain for following functionalities.
  • Count users matching a filter for user name
  • Count roles matching a filter for role name
  • Count users matching a filter for a claim value
  • Count users matching filters for a set of claim values (eg: count of users whose email address ends with '' and mobile number starts with '033')


In order to extend the functionality, this interface '' should be implemented by the class, packaged into an OSGI bundle and dropped into the dropins folder within WSO2 Identity Server.


  1. We required generate the third party Web services request (Soap) from our internal system for testing We are using Java programing to generate this code but we have few clarifications while generating this third party. We have a Private Key in PEM file,we open that file in text pad it contains Being,End block and inside block it is contains encoded charters.Objective here is to generate SOAP header along with certain tag information as follows ........
    Help us know what should in BinarySecurityToken tag ,SignatureValue Tag ,DigestValue Tag and SecurityTokenData

  2. This comment has been removed by the author.

  3. HTTP Status 500 - org.mozilla.javascript.JavaScriptException: JavaException: org.jaggeryjs.scriptengine.exceptions.ScriptException: SSL peer failed hostname validation for name: ubuntu (/dashboard/controllers/wsUtil.jag#76)

    When i'm going to IS dashboard i'm getting this error i want to solve it out?
    thank you?

  4. Ama Jayaweeara, I had the same error and i think that the problem is Java8. I switched to java7 and now my dashboard run.