on 07-13-2015 12:35 PM
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.