# Give A User Permissions To On-board New Users

**URL:** <https://discuss.elastic.co/t/give-a-user-permissions-to-on-board-new-users/274059>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [May 26, 2021, 12:38pm UTC](https://discuss.elastic.co/t/give-a-user-permissions-to-on-board-new-users/274059 "2021-05-26T12:38:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitdevnalkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankitdevnalkar/32/46158_2.png) [@ankitdevnalkar](https://discuss.elastic.co/u/ankitdevnalkar)\
**Post date:** [May 26, 2021, 12:38pm UTC](https://discuss.elastic.co/t/give-a-user-permissions-to-on-board-new-users/274059/1 "2021-05-26T12:38:26Z")

</div>

I want to create a user who can create and manage new user onboarding.

What I did is, created a user and assign a role with `manage_security` permission for the cluster.

**Problem:** the user who is assigned with `manage_security` privileges can make himself a superuser. I want to give a user limited access only to create and delete users.

Can anyone help me how can I achieve this?

---

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [May 27, 2021, 3:08am UTC](https://discuss.elastic.co/t/give-a-user-permissions-to-on-board-new-users/274059/2 "2021-05-27T03:08:06Z")

</div>

This is not possible today. Being able to create user essentially implies superuser access because there is no restriction on what roles you can assign to a new user. This means you can easily make a new superuser.

Depending on your needs, the closest alternative could be creating API keys for new users. The privileges of an API key is bounded by the creator's privileges.

---

<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:** [June 24, 2021, 3:09am UTC](https://discuss.elastic.co/t/give-a-user-permissions-to-on-board-new-users/274059/3 "2021-06-24T03:09:05Z")

</div>

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