diff --git a/_security/access-control/document-level-security.md b/_security/access-control/document-level-security.md index 1a3a93962b..452cd740bb 100644 --- a/_security/access-control/document-level-security.md +++ b/_security/access-control/document-level-security.md @@ -19,9 +19,7 @@ Use the following steps to get started with document-level and field-level secur 3. Select **Create Role** and provide a name for the role. 4. Review the **Index permissions** section and any necessary [index permissions](https://opensearch.org/docs/latest/security/access-control/permissions/) for the role. 5. Add document-level security, with the addition of a Domain Specific Language (DSL) query inside the `Document level security - optional` section. A typical request sent to the `_search` API includes `{ "query": { ... } }` around the query, but with document-level security in OpenSearch Dashboards, you only need to specify the query itself. For example, the following DSL query specifies that for the new role to have access to a document, the query's `genres` field must include `Comedy`: - - For example, the following DSL query can be entered in the `Document level security - optional` text box. - - This query specifies that for the role to have access to a document, its `genres` field must include `Comedy` - - A typical request to the `_search` API includes `{ "query": { ... } }` around the query, but in this case, you only need to specify the query itself. + ```json { "bool": {