
sec.compartmentGetRoles( compartment-name as String ) as Sequence
This function returns a list of roles in the specified compartment.
| Parameters | |
|---|---|
| compartment-name | The name of the compartment. | 
http://marklogic.com/xdmp/privileges/compartment-get-roles
  This function must be executed against the security database.
  
  const sec = require('/MarkLogic/security.xqy');
  sec.compartmentGetRoles("my-compartment")