sec.removeRole( role-name as String ) as null
Removes the role ($role-name).
If a role with name equal to $role-name is not found, an error is
returned.
This function also removes all references to the role
(privileges, amps, permissions and users).
Parameters | |
---|---|
role-name | The name of a role. |
http://marklogic.com/xdmp/privileges/remove-role
This function must be executed against the security database.
declareUpdate(); const sec = require('/MarkLogic/security.xqy'); sec.removeRole("Temporary") // Removes the role, named Temporary.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.