# Vault created dynamic postgres role/user lost original privileges

**URL:** <https://discuss.hashicorp.com/t/vault-created-dynamic-postgres-role-user-lost-original-privileges/51283>\
**Category:** Vault\
**Created:** [March 10, 2023, 3:08pm UTC](https://discuss.hashicorp.com/t/vault-created-dynamic-postgres-role-user-lost-original-privileges/51283 "2023-03-10T15:08:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopeshkhandelwal](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@gopeshkhandelwal](https://discuss.hashicorp.com/u/gopeshkhandelwal)\
**Post date:** [March 10, 2023, 3:08pm UTC](https://discuss.hashicorp.com/t/vault-created-dynamic-postgres-role-user-lost-original-privileges/51283/1 "2023-03-10T15:08:52Z")

</div>

I am using vault to inject postgres credentials into my Kubernetes-based application. The solution works fine and whenever there is a restart in my pods, the vault creates & injects a new postgres role/user. However, this new postgres role/user doesn’t have all the original privileges which are there in create\_statements. Can anyone please help?
