# Privacy rules between different companies

**URL:** <https://forum.bubble.io/t/privacy-rules-between-different-companies/291542>\
**Category:** Need help\
**Created:** [November 4, 2023, 1:06pm UTC](https://forum.bubble.io/t/privacy-rules-between-different-companies/291542 "2023-11-04T13:06:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomascope](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomascope/32/191232_2.png) [@thomascope](https://forum.bubble.io/u/thomascope)\
**Post date:** [November 4, 2023, 1:06pm UTC](https://forum.bubble.io/t/privacy-rules-between-different-companies/291542/1 "2023-11-04T13:06:09Z")

</div>

Hi everyone,

I want to create an application used by different companies. But I don’t want the companies see the information of the other ones.

I explain how the App works  
The User (A company) create an account with a Sign up functions. He informs (First name, Last name, Company’s name, email address, password).  
Another user from another company can do the same.

But when they will be inside the App they don’t see the information of the other ones.

Also, inside the companies, there will be several users. But we might see this point later.

So it can be as an ERP App but maybe different because the users don’t come from the same companies.

So how could I create this kid of Privacy rules?

Thank you

---

<div class="post-metadata">

**Author:** ![ntabs](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@ntabs](https://forum.bubble.io/u/ntabs)\
**Post date:** [November 4, 2023, 1:14pm UTC](https://forum.bubble.io/t/privacy-rules-between-different-companies/291542/2 "2023-11-04T13:14:10Z")

</div>

There’s a lot of ways you could go about this

You could either reference to the creator field or create several fields that would contain the user/s

If you only have 1 user for each company and that user was the one who created that company, you could use `only when this company's creator is current user`

> [@thomascope](#):
>
> Also, inside the companies, there will be several users. But we might see this point later.

If you need multiple people to see the company’s data like this one, you could create a field in the user called `company` that would reference to the company. You could then use `only when current user's company is this company`

You could also achieve it via list fields like adding a list field of users in your company data type but if you see your app to have lots of users in each company, I 'd suggest you don’t go that way

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [November 4, 2023, 1:15pm UTC](https://forum.bubble.io/t/privacy-rules-between-different-companies/291542/3 "2023-11-04T13:15:11Z")

</div>

It’s kind of a basic question that the manual might help you with (also didn’t you just ask this a few hours ago??)

Company data type  
Every data type has a Company field

Privacy rules are when Current User’s Company is This Thing’s Company. Then people in a company can view any data associated with that company.

---

<div class="post-metadata">

**Author:** ![thomascope](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomascope/32/191232_2.png) [@thomascope](https://forum.bubble.io/u/thomascope)\
**Post date:** [November 4, 2023, 1:19pm UTC](https://forum.bubble.io/t/privacy-rules-between-different-companies/291542/4 "2023-11-04T13:19:44Z")

</div>

@ntabs Thank you, I check about the field company. I will practice with mistakes until I achieve.  
So it is possible… I jsute need to practice to find my waY? Thanks

@georgecollier Yes I asked this kind of question but I thought maybe I was not clear or I asked too many questions in only one topic. That’s why added a topic.  
I know it is a basic question, after I finished this App, I will take a training because I need it.  
Thank you a lot for “formula” that you have written for me 🙂

Thomas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [January 13, 2024, 1:06pm UTC](https://forum.bubble.io/t/privacy-rules-between-different-companies/291542/5 "2024-01-13T13:06:35Z")

</div>

Closed on January 13, 2024, 1:06pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
