IMPORTANT: Version 6.3 of Elasticsearch has passed its maintenance date.
This documentation is no longer being updated. For the latest information, see the current release documentation.
elasticsearch-userscommand fails with the following message:
ERROR: extra arguments [...] were provided.
This error occurs when the
elasticsearch-users tool is parsing the input and
finds unexpected arguments. This can happen when there are special characters
used in some of the arguments. For example, on Windows systems the
is considered a parameter separator; in other words
-r role1,role2 is
-r role1 role2 and the
elasticsearch-users tool only
role1 as an expected parameter. The solution here is to quote the
For more information about this command, see