Skip to content

Commit

Permalink
Update document-level-security.md
Browse files Browse the repository at this point in the history
Signed-off-by: Naarcha-AWS <[email protected]>
  • Loading branch information
Naarcha-AWS committed Mar 27, 2024
1 parent af79721 commit 24afe20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _security/access-control/document-level-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 24afe20

Please sign in to comment.