# Security - how to add a user to multiple clusters

**URL:** <https://discuss.elastic.co/t/security-how-to-add-a-user-to-multiple-clusters/73279>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [January 30, 2017, 8:41pm UTC](https://discuss.elastic.co/t/security-how-to-add-a-user-to-multiple-clusters/73279 "2017-01-30T20:41:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamaanderson](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@adamaanderson](https://discuss.elastic.co/u/adamaanderson)\
**Post date:** [January 30, 2017, 8:41pm UTC](https://discuss.elastic.co/t/security-how-to-add-a-user-to-multiple-clusters/73279/1 "2017-01-30T20:41:34Z")

</div>

Is there an efficient way to add a user (or group of users) to multiple clusters? For example, there is a need to add a support team to 4 different clusters. Can this be done without executing the same "add users" action for each of the 4 clusters?

---

<div class="post-metadata">

**Author:** ![uricohen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/uricohen/32/9776_2.png) [@uricohen](https://discuss.elastic.co/u/uricohen)\
**Post date:** [January 31, 2017, 12:15am UTC](https://discuss.elastic.co/t/security-how-to-add-a-user-to-multiple-clusters/73279/2 "2017-01-31T00:15:00Z")

</div>

Hi @adamaanderson

The best way to do that at the moment would be to use the [security APIs](https://www.elastic.co/guide/en/x-pack/current/security-api.html) and add the users and roles to each cluster individually. Using the API you can script this and make sure it's applied identically to all clusters.  
In the future, Elastic Cloud Enterprise will also support integrating X-Pack Security with LDAP/AD or another external user registry (this is [available in X-Pack today](https://www.elastic.co/guide/en/x-pack/current/ldap-realm.html) but still not enabled in Cloud Enterprise). This will allow you to connect a number of cluster to the same backing user registry and use the same set of users and roles for all of them.

HTH  
Uri

---

<div class="post-metadata">

**Author:** ![adamaanderson](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@adamaanderson](https://discuss.elastic.co/u/adamaanderson)\
**Post date:** [January 31, 2017, 8:05pm UTC](https://discuss.elastic.co/t/security-how-to-add-a-user-to-multiple-clusters/73279/3 "2017-01-31T20:05:16Z")

</div>

> [@uricohen](#):
>
> clusters. In the future, Elastic Cloud Enterprise will also support integrating X-Pack Security with LDAP/AD or another external user registry (this is available in X-Pack today but still not enabled in Cloud Enterprise). This will allow you to connect a number of cluster to the same backing user registry and use the same set of users and roles for all of them.
> 
> HTHUri

Thanks!

---

<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:** [February 3, 2017, 8:05pm UTC](https://discuss.elastic.co/t/security-how-to-add-a-user-to-multiple-clusters/73279/4 "2017-02-03T20:05:34Z")

</div>

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