Loading TOC...

MarkLogic 9 Product Documentation
sec.roleSetDescription

sec.roleSetDescription(
   role-name as String,
   description as String
) as null

Summary

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.

Required Privileges

http://marklogic.com/xdmp/privileges/role-set-description if the currrent role is not $role-name.

Usage Notes

This function must be executed against the security database.

Example


// 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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.