cancel
Showing results for 
Search instead for 
Did you mean: 

Need to disable a list of users in BOXI 3.1 and BI 4.1 using java SDK

Former Member
0 Kudos

HI,

I need some help in creating script for disabling set users who havent logged in 3 months. Following is the environment details:

BOXI 3.1 SP7 FP1

Windows 2008 R2

Tomcat 6

BI 4.1 SP4 patch 1

Redhat 5.9

Tomcat 7

I have pulled out the list of users but need to create a script which would take this as input and then post script processing these set of users would be deleted.

Please help in topic as I am not an expert in Java

Regards,

Richa Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Once you have a query and you are sure to disable the set of users you can use below logic

=======================

IUser user = (IUser) userObject;             

           

                              

   IUserAliases userAliases=user.getAliases();

   Iterator it=userAliases.iterator();

   while(it.hasNext())

   {

   IUserAlias useralias=(IUserAlias)it.next();

useralias.setDisabled(true);

}

infostore.commit(infoobjects);

#Above infostore and infoobjects would be objects of IInfoStore and IInfoObjects interfaces respectively.

==============================

You would want to get yourself familiar with the sdks before you try to execute any code. When you try to update any property using SDKs, you have to be sure about the logic of the code you are using. It can be very distructive if not used properly.

Link to the guides can be found at

http://help.sap.com

Navigate to Analytics--> SAP BusinessObjects Business Intelligence--> Select the product version you are using and navigate to Development Information and refer to the BusinessObjects Platform Java SDK developer guide and API reference guide.

Thanks,

Prithvi