FRAMES | NO FRAMES | Description | Parameters | Response | Example |
URL: | http://server:port/arcgis/admin/security/roles/getRolesForUser |
---|---|
HTTP Method: | POST |
Parent Resource: | Roles |
Required Privileges: | Publisher or Administrator |
This operation returns a list of role names that have been assigned to a particular user
account.
This operation is used by the authorization module in ArcGIS Server to determine the collective
privileges of a requesting user account.
Parameter | Description |
---|---|
username | The name of the user for whom to return the roles. |
filter | An optional filter to be applied to the resultant role set. |
maxCount | The maximum number of results to return for this query. |
f | The response format. The default response format is html. Values: html | json |
{ "roles": [ "<role1>", "<role2>", ...], "hasMore": <true|false> }
To get all the roles that have been assgined to a user 'jwhite':
http://server:port/arcgis/admin/security/roles/getRolesForUser username=jwhite