# Per-installation segregation

**URL:** <https://community.auth0.com/t/per-installation-segregation/9303>\
**Category:** Get Help\
**Tags:** rules, multiple-domains, multiple-clients\
**Created:** [January 26, 2018, 4:02am UTC](https://community.auth0.com/t/per-installation-segregation/9303 "2018-01-26T04:02:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![santi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/santi/32/7626_2.png) [@santi](https://community.auth0.com/u/santi)\
**Post date:** [January 26, 2018, 4:02am UTC](https://community.auth0.com/t/per-installation-segregation/9303/1 "2018-01-26T04:02:31Z")

</div>

Hi, our current B2B application architecture has a model where every customer gets a single-tenant hosted installation of our service:

- We create dedicated subdomains for each user organization (e.g. [https://auth0.blameless.io](https://auth0.blameless.io))
- We have domain-based rules that allow users to create accounts on their own apps (@blameless.io emails can automatically sign into [blameless.blameless.io](http://blameless.blameless.io))
- We prevent free account creations and don’t have a flow beyond a paid installations
- Each installation has its own service interacting with auth0 and could provide different credentials

I was wondering based on this setup, how can we segregate the rules on a per-installation basis, how do we isolate the access that each installation gets and still manage to use a single auth0 setup for easier management.

Thanks!

---

<div class="post-metadata">

**Author:** ![lobo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lobo/32/1216_2.png) [@lobo](https://community.auth0.com/u/lobo)\
**Post date:** [January 31, 2018, 12:37am UTC](https://community.auth0.com/t/per-installation-segregation/9303/2 "2018-01-31T00:37:45Z")

</div>

Hi @santi, just checking this now.  
Not sure if this is too obvious, but would checking the `client_id` on each rule help for this scenario? you’d have to check for certain `client_id` on the rules that you’ll be using and then that rule will be triggered (or not) for that specific client.

If that does not work/help, please let me know, expand the case a little bit more, and I’ll try to help you out with another solution.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 9:48am UTC](https://community.auth0.com/t/per-installation-segregation/9303/3 "2019-07-25T09:48:11Z")

</div>


