Setting Up Users, Roles, Privileges, and Permissions
MarkLogic Server provides a rich set of security objects that enable you to control user access to documents and applications, which are described in Securing MarkLogic Server and in Security Administration in this guide.
In addition to the Security pages in the Admin Interface, there are also XQuery, JavaScript, and REST functions you can use in scripts to set up and manage security objects.