Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

locking users using ume api

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);

using unique id

iam locking the useraccount like this




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



Message was edited by:

Lakshmikanth Nandanuru

Former Member
Not what you were looking for? View more on this topic or Ask a question