Select to view content in your preferred language

SOI Get user roles

112
0
06-26-2024 02:51 PM
Dvirus
by
Occasional Contributor

Hi,

My arcgis server is federate to the portal version 11.2.
I am trying to get user roles list

 

var roles = ServerUtilities.GetRoleInformation(userinfo);

 

 

 

I get:
org_user, Organization, Personal, Anonymous

But NOT the role that define in the portal at: /portal/home/organization.html?tab=memberRoles#settings

 

When I use this:

 

 

var userRoleSet = ServerUtilities.GetGroupInfo(ServerUtilities.GetServerEnvironment());

 

 

I get the groups of user as they define in the portal.

 

Any suggestions?

0 Kudos
0 Replies