# External Elasticsearch and Cluster Priviliges

**URL:** <https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824>\
**Category:** Elasticsearch\
**Created:** [March 3, 2020, 7:32am UTC](https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824 "2020-03-03T07:32:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NK\_12](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@NK\_12](https://discuss.elastic.co/u/NK_12)\
**Post date:** [March 3, 2020, 7:32am UTC](https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824/1 "2020-03-03T07:32:11Z")

</div>

Hello Elasticsearch Community,

this might be a stupid question, but I can't seem to find the answer by my self.  
I set up a Nextcloud on an apache2 Webspace. Then I wanted to configure the fulltextsearch, for that I need the ES instance. I installed ES on a new VM and after setting up I tried to connect em via a specific User. The Problem is if I don't give the role this user has the rights to access the cluster via cluster privileges. Nextcloud just prompts BadRequest. If I give the role cluster privileges, for example "monitor" it runs smoothly. That can't be right can it?

English isn't my primary language, I apologize in advance for any weird phrasing.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 3, 2020, 10:09am UTC](https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824/2 "2020-03-03T10:09:37Z")

</div>

Welcome!

> [@NK\_12](#):
>
> I tried to connect em via a specific User.

How did you try that? What commands did you run?

---

<div class="post-metadata">

**Author:** ![NK\_12](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@NK\_12](https://discuss.elastic.co/u/NK_12)\
**Post date:** [March 4, 2020, 7:43am UTC](https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824/3 "2020-03-04T07:43:46Z")

</div>

Via GUI on the Nextcloud Server  
It asks for an Host, User/Password and a destination Port.  
and a index on my ES Cluster.  
[Example](https://raw.githubusercontent.com/nextcloud/fulltextsearch/master/screenshots/configuration.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 4, 2020, 8:31am UTC](https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824/4 "2020-03-04T08:31:49Z")

</div>

So probably nextcloud is sending some cluster level requests when connecting to elasticsearch ?

---

<div class="post-metadata">

**Author:** ![NK\_12](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@NK\_12](https://discuss.elastic.co/u/NK_12)\
**Post date:** [March 4, 2020, 8:56am UTC](https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824/5 "2020-03-04T08:56:59Z")

</div>

Well I am really embarrassed that I haven't thought about that, I will check it out and update you when I find something.  
Thanks for the advice.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 1, 2020, 8:56am UTC](https://discuss.elastic.co/t/external-elasticsearch-and-cluster-priviliges/221824/6 "2020-04-01T08:56:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
