Skip to Content

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

How to search users by created date????

Hi forum

I want to search users by created date. I mean that i´m consulting users that was creating in dd/mm/yyyy date.

Someone knows how use the IUSearchFilter to make this ?

Thnks

Joshua

Former Member
Former Member replied

Why don`t You do like this:

Date date1 = new Date();
Date date2 = new Date();
IUserAccountFactory  userAccFactory = UMFactory.getUserAccountFactory();
IUserAccountSearchFilter filter = userAccFactory.getUserAccountSearchFilter();
filter.setCreateBetween(date1,date2);
ISearchResult result = userAccFactory.search(filter);

Now You can iterate over result, in addition You need to initialize varaibles

date1 and date2 with proper values;

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question