List ACL by User
Overview
This operation returns all of the permissions for all named resources for a specified user. The response contains the named resources and respective permissions applied to them.
- For named tables, the permissions can be EXECUTE, CREATE, MODIFY, or DELETE
- For repository folders, the permissions can be READ or WRITE
- For other names resources, the permissions can be EXECUTE
ACL Authorization Flow
The user making this request will only be able to list permissions on resources within the repository folders (or subfolders) on which they have WRITE permissions.
HTTP GET URL Format
The following format is used for HTTP GET requests to list ACL by user:
HTTP GET http://<server>:<port>/rest/Spatial/AccessControlService/acl/users/userName?resourceType=type
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
userName | String | Yes | Specifies the name of the user. |
type | String | No | The resourceType query parameter specifies the type of name resource to filter the response. This can be one or more of NamedTable, NamedFeatureLayer, NamedLabelLayer, NamedGroupLayer, NamedPieLayer, NamedBarLayer, NamedGraduatedSymbolLayer, NamedLineChartLayer, NamedLineLinkageLayer, NamedFeatureLabelSource, NamedMapAndView, NamedTile, NamedWMTSLayer, or RepositoryFolder. |
Returns
Returns permissions for all resources for the specified user.
Example for GET
Request URL
http://<server>:<port>/rest/Spatial/AccessControlService/acl/users/user1
Response
{ "usersRolesAclList":[ { "usersACL":[ { "name":"user1", "resources":[ { "name":"/Samples/NamedTiles/", "permissions":[ "READ", "WRITE" ], "resourceType":"RepositoryFolder" }, { "name":"/Samples/", "permissions":[ "READ", "WRITE" ], "resourceType":"RepositoryFolder" }, { "name":"/Samples/NamedTiles/WorldTile", "permissions":[ "EXECUTE" ], "resourceType":"NamedTile" } ] } ], "rolesACL":[] } ] }