# How to separate QA and Prod users in Auth0?

**URL:** <https://community.auth0.com/t/how-to-separate-qa-and-prod-users-in-auth0/22129>\
**Category:** Get Help\
**Created:** [March 5, 2019, 4:12pm UTC](https://community.auth0.com/t/how-to-separate-qa-and-prod-users-in-auth0/22129 "2019-03-05T16:12:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fruitbat221](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fruitbat221/32/11532_2.png) [@fruitbat221](https://community.auth0.com/u/fruitbat221)\
**Post date:** [March 5, 2019, 4:12pm UTC](https://community.auth0.com/t/how-to-separate-qa-and-prod-users-in-auth0/22129/1 "2019-03-05T16:12:25Z")

</div>

Hi what is the best way to separate QA and Prod users for our application using Auth0 authentication? QA creates lots of test users and we don’t want those to clutter up our Prod database, is there a way to “compartmentalize”?

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [March 7, 2019, 1:56am UTC](https://community.auth0.com/t/how-to-separate-qa-and-prod-users-in-auth0/22129/2 "2019-03-07T01:56:37Z")

</div>

Our recommended way to separate your different environments is to use different tenants. The following documentation outlines the best practices for this.

> **[Set Up Multiple Environments](https://auth0.com/docs/get-started/auth0-overview/create-tenants/set-up-multiple-environments)**
>
> Describes how to use multiple Auth0 tenants to manage various environments.

The next best option to separate users within a single tenant is to [create a new database connection](https://auth0.com/docs/connections/database/custom-db/create-db-connection) for each environment.

---

<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:** [August 30, 2019, 9:44am UTC](https://community.auth0.com/t/how-to-separate-qa-and-prod-users-in-auth0/22129/3 "2019-08-30T09:44:28Z")

</div>

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