
sec.roleSetDescription( role-name as String, description as String ) as null
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
declareUpdate();
const sec = require('/MarkLogic/security.xqy');
sec.roleSetDescription(
"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.