Skip to Content
Author's profile photo Former Member

Active/Inactive User Search – A custom SDK Java Approach Business Objects 4.0

I have seen lots of post requesting to get the way to retrieve disable or inactive user search. There is business reason to get the user count but there is no way to get it with direct query through Query Builder.

I came across a situation where we do need inactive and active users’ counts and users details but there was no way.  We do work for all type of Business Object Java SDK 4.0 on business needs.


We write a search engine using Java SDK API’s to get the result. It’s a simple java program which connects to CMS and search for user with give  parameters. Let me take you in deeper way to get the idea:


1)      We retrieve the user list by passing search criteria

       // Sample query


2)     We add then search criteria like user first name or user last name

       // Sample query


3)     Once the query gets built up, it connect to CMS and get enterpriseSession  to get the list of user through the query run

4)      We process the list of user to retrieve the active  (enable) or Inactive (disable) user.  It’s done through the API call.  We have Interface IUserAliases.           We iterate through the User object  and get the user status on alias basis

            // sample code

            IUserAliases  boAliases = user.getAloases();

            Boolean userStat = boAliases.iterator().next().isDisabled();

               // the above piece of code helps to get the user status 

5)      We put all the active and inactive user in list and send back whenever we need.

Assigned tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Balaji Vivekanandan
      Balaji Vivekanandan

      hi Abhijit Das,

      can you able to share the readymade java source file so that we will try use it, not able to get a clear idea to apply this steps.