Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sec:role-get-description

sec:role-get-description(
   $role-name as xs:string
) as xs:string

Summary

Returns the description for the specified role.

Parameters
role-name The name of the role.

Required Privileges

http://marklogic.com/xdmp/privileges/role-get-description

Usage Notes

If a role with name equal to $role-name is not found, an error is returned.

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-get-description("Developer")
=> Developer-level access

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.