Yes, you will need to set up a user with the correct permissions and then pass that user in your REST command.
On Feb 20, 2017 12:02 AM, “Oucema Bellagha” email@example.com wrote:
You received this message because you are subscribed to the Google Groups “Search Guard” group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/5b5c5b86-56d6-45b2-8482-bc2b95c57192%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.