Hello All,
I am trying to write a code using ume api to lock users but i get the message
given id "USER.PRIVATE_DATASOURCE.un:BCSTEST9"is not a unique id of a user account!
I appreciate your help in this matter. The code should essentially lock users who never logged on
i am getting unique id
IUserFactory userFactory = UMFactory.getUserFactory();
IUserSearchFilter searchFilter = userFactory.getUserSearchFilter();
// ISearchResult searchResult = userFactory.searchUsers(searchFilter);
ISearchResult searchResult = userFactory.getUniqueIDs();
while (searchResult.hasNext()) {
String uniqueid = (String) searchResult.next();
using unique id
iam locking the useraccount like this
UMFactory.getUserAccountFactory().getMutableUserAccount(uniqueid).setLocked(true,0);
UMFactory.getUserAccountFactory().getMutableUserAccount(uniqueid).save();
UMFactory.getUserAccountFactory().getMutableUserAccount(uniqueid).commit();
but this is not working , it says USER.PRIVATE_DATASOURCE.un:BCSTEST9 is not a unique id
can somebody tell me what exactly is going wrong with my unique id
thanks,
lak
Message was edited by:
Lakshmikanth Nandanuru