sec.roleGetCompartment( role-name as String ) as String?
This function returns the compartment for the specified role.
Parameters | |
---|---|
role-name | The name of the role. |
http://marklogic.com/xdmp/privileges/role-get-compartment
This function must be executed against the security database.
const sec = require('/MarkLogic/security.xqy'); sec.roleGetCompartment("my-compartmented-role")