on 10-05-2009 5:01 PM
Hi all,
I've to delete an user from UME.
Code above doesn't work fine.
IUserAccountFactory accountFactory = UMFactory.getUserAccountFactory();
IUserFactory userFactory = UMFactory.getUserFactory();
try {
IUserAccount account = accountFactory.getUserAccountByLogonId(wdContext.currentTableUseriElement().getIdUtente());
IUserAccount mutableAccount = accountFactory.getMutableUserAccount(account.getUniqueID());
userFactory.deleteUser(account.getUniqueID());
} catch (UMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Have you any idea?
Hi,
use this code,
String uid = "testuser01";
try
{
IUserFactory userFact = UMFactory.getUserFactory();
IUser user = userFact.getUserByLoginID(uid);
String uniqueId = user.getUniqueID();
userFact.deleteUser(uniqueId);
}
catch(UMException e)
{
}
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have to use the commit() method of IUserAccount to commit the changes.
Thanks,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Your code is proper, expect for some changes. Do the following changes and it should work:
IUserAccountFactory accountFactory = UMFactory.getUserAccountFactory();
IUserFactory userFactory = UMFactory.getUserFactory();
userFactory.deleteUser(userFactory.getUserByLogonID(logonId).getUniqueID());
Thanks,
Venkat
I don't have any error message or exception.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Domenico Petronella ,
what exception u got?
after deploying this application? did u attach this iview to some user(Authorized user having user administration role in portal) in portal?
Regards,
Manivannan P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.