sec:privilege-set-name( $action as xs:string, $kind as xs:string, $new-privilege-name as xs:string ) as empty-sequence()
Changes the sec:privilege-name of a sec:privilege to
$new-privilege-name.
If a privilege with the given $action and $kind is not found,
an error is returned.
If $new-privilege-name is not unique, an error is returned.
http://marklogic.com/xdmp/privileges/privilege-set-name
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:privilege-set-name( "http://marklogic.com/xdmp/privileges/mypriv", "execute", "new_name") (: Renames the execute privilege with the specified action to "new_name." :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.