| FRAMES | NO FRAMES | Description | Parameters | Response | Example |
| URL: | http://server:port/arcgis/admin/security/roles/getUsersWithinRole |
|---|---|
| HTTP Method: | POST |
| Parent Resource: | Roles |
| Required Privileges: | Publisher or Administrator |
You can use this operation to conveniently see all the user accounts to whom this role has been assigned.
| Parameter | Description |
|---|---|
| rolename | The name of the role. |
| filter | An optional filter to be applied to the resultant user 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 |
{
"users": [ "<user1>", "<user2>", ...],
"hasMore": <true|false>
}
To get the first 20 users whose names begin with 'a' that are in the role of 'editors':
http://server:port/arcgis/admin/security/roles/getUsersWithinRole rolename=editors, filter=a maxCount=20