# How can i assign a different password length by Role

**URL:** <https://community.auth0.com/t/how-can-i-assign-a-different-password-length-by-role/187131>\
**Category:** Get Help\
**Tags:** user-password-management, user-management\
**Created:** [May 23, 2025, 6:47pm UTC](https://community.auth0.com/t/how-can-i-assign-a-different-password-length-by-role/187131 "2025-05-23T18:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro.lagomarsino](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pedro.lagomarsino/32/71241_2.png) [@pedro.lagomarsino](https://community.auth0.com/u/pedro.lagomarsino)\
**Post date:** [May 23, 2025, 6:47pm UTC](https://community.auth0.com/t/how-can-i-assign-a-different-password-length-by-role/187131/1 "2025-05-23T18:47:33Z")

</div>

I need to assign specific password length for admin role, different than regular users. How can i do it?

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [May 23, 2025, 7:59pm UTC](https://community.auth0.com/t/how-can-i-assign-a-different-password-length-by-role/187131/3 "2025-05-23T19:59:21Z")

</div>

Hi @pedro.lagomarsino,

Welcome to the Auth0 Community!

Unfortunately, the password minimum length is a connection-wide property that needs to be applied to all users within a Database Connection. You can, however, create a separate Database Connection where the admin accounts will be kept, and configure the password policy there. You will need to create separate authorization endpoints for each, as specified in this post:

> [@Multiple db connections for one app](https://community.auth0.com/t/multiple-db-connections-for-one-app/68261/2):
>
> Hi @jzim The connection resolver is a good approach. You can also explicitly specify the connection in the call to /authorize so your internal employees would specify the internal DB, and your clients would each specify their own DB. This approach has the drawback that you can only specify a single connection with that parameter, so if you want to use a DB OR a SAML connection, for example, it doesn’t work. John

If you have any other questions, feel free to reach out.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 6, 2025, 8:00pm UTC](https://community.auth0.com/t/how-can-i-assign-a-different-password-length-by-role/187131/4 "2025-06-06T20:00:04Z")

</div>

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