Skip to content

Commit 09051ad

Browse files
authored
Update doc to include missing attribute
Identified as missing through investigation into elastic/terraform-provider-elasticstack#125
1 parent be7c741 commit 09051ad

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

x-pack/docs/en/rest-api/security/create-roles.asciidoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,20 @@ is currently limited to the management of application privileges.
5656
This field is optional.
5757

5858
`indices`:: (list) A list of indices permissions entries.
59-
`field_security`::: (object) The document fields that the owners of the role have
60-
read access to. For more information, see
61-
<<field-and-document-access-control>>.
6259
`names` (required)::: (list) A list of indices (or index name patterns) to which the
6360
permissions in this entry apply.
6461
`privileges`(required)::: (list) The index level privileges that the owners of the role
6562
have on the specified indices.
63+
`field_security`::: (object) The document fields that the owners of the role have
64+
read access to. For more information, see
65+
<<field-and-document-access-control>>.
6666
`query`::: A search query that defines the documents the owners of the role have
6767
read access to. A document within the specified indices must match this query in
6868
order for it to be accessible by the owners of the role.
69+
`allow_restricted_indices`::: (boolean) Include matching restricted indices in names parameter.
70+
*Caution Advised:* Toggling this flag is very strongly discouraged because it could effectively
71+
grant unrestricted operations on critical data, making the entire system unstable or leaking
72+
sensitive information.
6973

7074
`metadata`:: (object) Optional meta-data. Within the `metadata` object, keys
7175
that begin with `_` are reserved for system usage.

0 commit comments

Comments
 (0)