# Percona Operator - Create User

**URL:** https://forums.percona.com/t/percona-operator-create-user/11542
**Category:** Percona Operator for PostgreSQL
**Created:** [July 27, 2021, 7:47am UTC](https://forums.percona.com/t/percona-operator-create-user/11542 "2021-07-27T07:47:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ctaglia](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ctaglia/32/4087_2.png) [@ctaglia](https://forums.percona.com/u/ctaglia)
#### Post date: [July 27, 2021, 7:47am UTC](https://forums.percona.com/t/percona-operator-create-user/11542/1 "2021-07-27T07:47:26Z")

</div>

Hello community. I have the following question when using the Kubernetes operator. I cannot find the way or documentation that indicates how users are created through the operator for Kubernetes.  
I understand that it should be a Pgtask (not entirely sure) in order to add/remove a new user. I am right?. That is, since you cannot use the client pgo in kubernetes and manage the operator using YAML files, there must be some way to manage users in the same way. Right?

---

<div class="post-metadata">

### Author: ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)
#### Post date: [July 27, 2021, 8:08am UTC](https://forums.percona.com/t/percona-operator-create-user/11542/2 "2021-07-27T08:08:52Z")

</div>

Hello @ctaglia ,

for now we do not provide such feature. There are lots of workarounds on how to perform this: control plane, through CICD, etc.

What is your use case? None of the workarounds work for you?

---

<div class="post-metadata">

### Author: ![ctaglia](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ctaglia/32/4087_2.png) [@ctaglia](https://forums.percona.com/u/ctaglia)
#### Post date: [July 27, 2021, 9:15am UTC](https://forums.percona.com/t/percona-operator-create-user/11542/3 "2021-07-27T09:15:00Z")

</div>

Hello @Sergey_Pronin  
Thanks for your quick response! What are those workarounds? can you guide me to some of them?

In my case, I have infra terraformed and deployed percona with helm for the cluster and backups implementation and it was intended  
to handle user and password management in the same way. I thought the correct way was through pgtasks.

The workarounds you suggest, I imagine they include creating users through the psql client directly in the postgres

Anyway, I think that this user administration could be contributed in the future through pgtask. How is the procedure to participate in the project?

---

<div class="post-metadata">

### Author: ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)
#### Post date: [July 27, 2021, 10:46am UTC](https://forums.percona.com/t/percona-operator-create-user/11542/4 "2021-07-27T10:46:37Z")

</div>

There are few ways:

1. Crossplane - see an example for our MySQL Operator here: [Manage MySQL Users with Kubernetes - Percona Database Performance Blog](https://www.percona.com/blog/2021/05/20/manage-mysql-users-with-kubernetes/)  
It will work for PG as well.

2. For initial user creation use cicd pipeline.

3. And yeah, for most of the cases psql will work.

Our contribution guidelines are described in [CONTRIBUTING.md](https://github.com/percona/percona-postgresql-operator/blob/main/CONTRIBUTING.md). If you are willing to participate, please first write down the implementation idea in some document before sending the PR. This feature is quite broad and might need thorough design review.  
Please let me know if there is anything I can help with.

---

<div class="post-metadata">

### Author: ![ctaglia](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ctaglia/32/4087_2.png) [@ctaglia](https://forums.percona.com/u/ctaglia)
#### Post date: [July 27, 2021, 11:05am UTC](https://forums.percona.com/t/percona-operator-create-user/11542/5 "2021-07-27T11:05:31Z")

</div>

Thank you for your answer. I am reading it right now.  
Also will read howto contribute. 🙂
