Remove Dataset ACL

Overview

This operation removes EXECUTE, CREATE, MODIFY, or DELETE permissions from the specified named tables. If EXECUTE permissions are removed, then all CREATE, MODIFY, or DELETE permissions are also removed since the user would be unable to query the table if EXECUTE is not present.

No propagation takes place between tables and view tables. Each of them is treated independently.

Permission is removed for all users and roles on the specified named tables. It is not possible to specify different permissions for each user or role in a single request.

ACL Authorization Flow

The user making this request will only be able to remove permission on named tables within the repository folders (or subfolders) on which they have WRITE permissions.

HTTP POST URL Format

The following format is used for HTTP POST requests:

HTTP POST:  /acl/tables/delete
POST DATA: {
   "users":[
      "user1"
   ],
   "roles":[
      "role1"
   ],
   "resources":[
      "/Samples/NamedTables/WorldTable"
   ],
   "permissions":[
      "EXECUTE",
      "CREATE",
      "DELETE",
      "MODIFY"
   ]
}

POST HEADER: Content-Type:application/json 

Parameters

Parameter Type Required Description
users String Yes Specifies a list of users. Required only when roles are not given in the request.
roles String Yes Specifies a list of roles. Required only when users are not given in the request.
resources String Yes Specifies a list of named tables.
permissions String Yes Specifies the permission to be removed from the specified named tables. The permission can be one or more of EXECUTE, CREATE, DELETE, or MODIFY.

Returns

Removes EXECUTE, CREATE, MODIFY, or DELETE permissions from one or more named tables.

Example for POST

Request URL

http://<server>:<port>/rest/Spatial/AccessControlService/acl/tables/delete

Request Body

{
   "users":[
      "user1"
   ],
   "roles":[
      "role1"
   ],
   "resources":[
      "/Samples/NamedTables/WorldTable"
   ],
   "permissions":[
      "EXECUTE",
      "CREATE",
      "DELETE",
      "MODIFY"
   ]
}

Response

{
   "users":[
      "user1"
   ],
   "roles":[
      "role1"
   ],
   "resources":[
      "/Samples/NamedTables/WorldTable"
   ]
}