Skip to content

Commit 48d59cc

Browse files
lcawlbizybot
authored andcommittedOct 9, 2019
[DOCS] Add docs for create_doc index privilege (#47584)
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
1 parent 55f5463 commit 48d59cc

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed
 

‎x-pack/docs/en/security/authorization/privileges.asciidoc

+15-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,21 @@ action.
160160
+
161161
--
162162
NOTE: This privilege does not restrict the index operation to the creation
163-
of documents but instead restricts API use to the index API. The index API allows a user
164-
to overwrite a previously indexed document.
163+
of documents but instead restricts API use to the index API. The index API
164+
allows a user to overwrite a previously indexed document. See the `create_doc`
165+
privilege for an alternative.
166+
167+
--
168+
169+
`create_doc`::
170+
Privilege to index documents. Also grants access to the update mapping action.
171+
However, it does not enable a user to update existing documents.
172+
+
173+
--
174+
NOTE: When indexing documents with an external `_id` either via the index API or
175+
the bulk API, the request must use `op_type` as `create`. If `_id`s are
176+
generated automatically, the authorization happens as if the `op_type` is set to
177+
`create`.
165178

166179
--
167180

0 commit comments

Comments
 (0)