Skip to content

Commit

Permalink
[DOCS] Add docs for create_doc index privilege (#47584) (#47778)
Browse files Browse the repository at this point in the history
This commit adds documentation for new index privilege
create_doc which only allows indexing of new documents
but no updates to existing documents via Index or Bulk APIs.

Relates: #45806
  • Loading branch information
bizybot authored Oct 9, 2019
1 parent 75a7daa commit 1139cce
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions x-pack/docs/en/security/authorization/privileges.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,21 @@ action.
+
--
NOTE: This privilege does not restrict the index operation to the creation
of documents but instead restricts API use to the index API. The index API allows a user
to overwrite a previously indexed document.
of documents but instead restricts API use to the index API. The index API
allows a user to overwrite a previously indexed document. See the `create_doc`
privilege for an alternative.

--

`create_doc`::
Privilege to index documents. Also grants access to the update mapping action.
However, it does not enable a user to update existing documents.
+
--
NOTE: When indexing documents with an external `_id` either via the index API or
the bulk API, the request must use `op_type` as `create`. If `_id`s are
generated automatically, the authorization happens as if the `op_type` is set to
`create`.

--

Expand Down

0 comments on commit 1139cce

Please sign in to comment.