sec:role-exists( $role-name as xs:string ) as xs:boolean
This function returns true if the specified role exists in the security database.
Parameters | |
---|---|
role-name | The role name. |
http://marklogic.com/xdmp/privileges/get-role
This function must be executed against the security database.
xquery version "1.0-ml"; import module namespace sec = "http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:role-exists("my-role")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.