Skip to main content

Securing MarkLogic Server

Example—Element Level Security

This section describes a scenario using element level security. The scenario is not meant to demonstrate the correct way to set up element level security, as your situation is likely to be unique. However, it demonstrates how element level security works and may give you ideas for how to implement your own security model. You will need access to both the MarkLogic Server Admin Interface and Query Console. Install or upgrade to MarkLogic Server 9.0-x or later prior to starting this example:

For a MarkLogic Server application used by a department, certain parts of documents may be hidden so that only users with the correct role may view or update those parts of the document. Users without the proper role will not be able to see the element concealed by the protected path.

To set up the element level security for this scenario, follow the steps in each subsection.