diff --git a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/service/ElasticServiceAccounts.java b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/service/ElasticServiceAccounts.java index 67211ec6135be..d85447092e150 100644 --- a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/service/ElasticServiceAccounts.java +++ b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/service/ElasticServiceAccounts.java @@ -166,6 +166,11 @@ final class ElasticServiceAccounts { RoleDescriptor.IndicesPrivileges.builder() .indices("content-*", ".search-acl-filter-*") .privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance", "view_index_metadata") + .build(), + // Custom permissions required for stateful agentless integrations + RoleDescriptor.IndicesPrivileges.builder() + .indices("agentless-*") + .privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance", "view_index_metadata") .build(), }, new RoleDescriptor.ApplicationResourcePrivileges[] { RoleDescriptor.ApplicationResourcePrivileges.builder()