
sec:role-set-description( $role-name as xs:string, $description as xs:string ) as empty-sequence()
Changes the description of the role identified by $role-name to $description.
| Parameters | |
|---|---|
| role-name | The name of the role. |
| description | A description of the role. |
http://marklogic.com/xdmp/privileges/role-set-description
if the currrent role is not $role-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:role-set-description(
"Developer",
"Developer-level access")
(: Changes the description of the role, "Developer." :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.