UserCriterion Error When I try to fetch/return list of users
in Select field , i write one groovy script to fetch initial value : list of available users
List<User> Users= apiAccessor.getIdentityAPI().getUsers(0, 200, UserCriterion.FIRST_NAME_ASC);
Map<String,Long> usercombolist=new HashMap<String,Long>();
for (User user:Users)
{
usercombolist.put(user.getPath(), user.getId());
}
usercombolist;
Map<String,Long> usercombolist=new HashMap<String,Long>();
for (User user:Users)
{
usercombolist.put(user.getPath(), user.getId());
}
usercombolist;
But It just say "UserCriterion cannot be resolved. It may lead to runtime errors."
when i triy with Group , roles it all perfact just in user , in groovy script editor give warning as above and give error when run process
Comments
Would it help if you add
at the beginning of your script?