Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec:role-set-description

sec:role-set-description(
   $role-name as xs:string,
   $description as xs:string
) as empty-sequence()

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