Get Roles For User

Description

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.

Parameters

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

Response Format

{
		"roles": [ "<role1>", "<role2>", ...],
		"hasMore": <true|false>
	}

Example

To get all the roles that have been assigned to user 'jwhite':

http://server:port/arcgis/admin/security/roles/getRolesForUser
	username=jwhite

7/5/2017