hugo.mauricioesri-portugal-pt-esridist

PortalUser.newInstance getting wrong values??

Discussion created by hugo.mauricioesri-portugal-pt-esridist Employee on Nov 13, 2012
Hi,

I'm trying to get the information of users inside a Group.

I use
List<String> groupUsers = group.getUsers();
and get a list of usernames.

Then I want the get user info, like full name and thunbnail. I use this

PortalUser portalUser;
for (String userName : groupUsers) {
    portalUser= PortalUser.newInstance(currentPortal, userName);
    (...)
}


but portalUser only gets initialized with the user currently logged in to the Portal and not the username i'm providing

Is there any other way to search for user info?

Thank you so much

Hugo Maurício

Outcomes