
sec:collection-remove-permissions( $uri as xs:string, $permissions as element(sec:permission)* ) as empty-sequence()
Removes the permissions $permissions from the protected collection identified by $uri.
| Parameters | |
|---|---|
| uri | The URI of a collection. |
| permissions | Permissions to be removed from that protected collection. If $permissions is the empty sequence, the function will have no effect. |
http://marklogic.com/xdmp/privileges/collection-remove-permissions
If a protected collection with uri equal to $uri is not found, an error is raised.
This function must be executed against the security database.
(: execute this against the security database :)
xquery version "1.0-ml";
import module namespace sec="http://marklogic.com/xdmp/security" at
"/MarkLogic/security.xqy";
sec:collection-remove-permissions("http://marklogic.com/dev_modules",
(xdmp:permission("Developer", "update")))
(: Removes the Developer(update) permission from the "dev_modules" collection. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.