MarkLogic Server 11.0 Product Documentation
sec.roleGetDescription

sec.roleGetDescription(
   role-name as String
) as 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

const sec = require('/MarkLogic/security.xqy');
   
sec.roleGetDescription("Developer")

=> Developer-level access
Powered by MarkLogic Server | Terms of Use | Privacy Policy