MarkLogic 12 EA 1 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."    
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy