on 05-26-2008 6:44 PM
Hi experts,
Anyone know how to lock and delete multiple users with SAP UME api with single commit?
Hi Anupama,
This is my current solution to lock a single user with a commit but I need solution to lock multiple users with single commit;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
For locking i can help you out by below solution:
if you are writing String userId = user.getUniqueName();
IUserAccountFactory uaf = UMFactory.getUserAccountFactory();
IUserAccount ua = uaf.getUserAccountByLogonId(userId);
IUserAccount uma = uaf.getMutableUserAccount(ua.getUniqueID());
IUserFactory uf = UMFactory.getUserFactory();
uma.setLocked(true,0);
uma.save();
uma.commit();
uf.invalidateCacheEntryByLogonId(userId);
-
>>>In your setLock method, try to set IUserAccount.LOCKED_BY_ADMIN
and for deleting ::::::::just check out something on following link ::::::::::::::::::::::::::
http://help.sap.com/saphelp_erp2005vp/helpdata/en/4a/e06f429c789041e10000000a1550b0/frameset.htm
May be it works......
Regards,
Anu
Edited by: Anupama Bindal on May 27, 2008 12:58 PM
Edited by: Anupama Bindal on May 27, 2008 1:07 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.