Hi,
I am trying to retrieve the list of the groups of all the users.
This code below displays me the list of the users, but the groups are empty.
However, when I am in the BusinessObejcts Enterprise Console, I can see that users are "members of" groups.
So shouldn't be empty.
Thank you for any help.
IInfoObjects iObjects = iStore.query ("SELECT SI_ID FROM CI_SYSTEMOBJECTS "
+ "WHERE SI_KIND='USER' ");
for(int i = 0; i < iObjects.size(); i++)
{
IInfoObject iUser = (IInfoObject) iObjects.get(i);
Iterator groups = ((IUserBase) iUser).getGroups().iterato
r();
outString += iUser.getID()+" "+iUser.getTitle()+"<br>";
while(groups.hasNext()) {
outString += groups.next()+",";
}
outString += "<br>";
}
Start Free Trial