# How to associate a single companyID with multiple contacts upon login

**URL:** <https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437>\
**Category:** Ask for Help\
**Created:** [October 29, 2024, 8:47am UTC](https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437 "2024-10-29T08:47:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiteras](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hiteras/32/81105_2.png) [@hiteras](https://community.glideapps.com/u/hiteras)\
**Post date:** [October 29, 2024, 8:47am UTC](https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437/1 "2024-10-29T08:47:36Z")

</div>

I’m developing a service order system used by multiple clients. In the user table, each client is assigned a unique companyID. Each client has multiple contacts, and I want each contact to be able to log in with their individual email address, while all contacts from the same client are associated with the same single companyID. Is this possible?

---

<div class="post-metadata">

**Author:** ![Marc-Olivier](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@Marc-Olivier](https://community.glideapps.com/u/Marc-Olivier)\
**Post date:** [October 29, 2024, 3:37pm UTC](https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437/2 "2024-10-29T15:37:26Z")

</div>

Hi @hiteras

How do you manage adding new client and new contacts?  
Does the client adds to the app his own contacts?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 30, 2024, 12:04am UTC](https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437/3 "2024-10-30T00:04:31Z")

</div>

If the client adds their own contacts, you can set a special value in the form to set the client’s companyID to the contacts they add.

If someone else is adding, have a choice component to choose a companyID (showing the company name on the front end though via “Show as”).

---

<div class="post-metadata">

**Author:** ![hiteras](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hiteras/32/81105_2.png) [@hiteras](https://community.glideapps.com/u/hiteras)\
**Post date:** [October 30, 2024, 3:15am UTC](https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437/4 "2024-10-30T03:15:25Z")

</div>

I would like to add a new ‘Add Contacts’ tab to the app, where clients can add contacts themselves.

---

<div class="post-metadata">

**Author:** ![hiteras](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hiteras/32/81105_2.png) [@hiteras](https://community.glideapps.com/u/hiteras)\
**Post date:** [October 30, 2024, 4:46am UTC](https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437/5 "2024-10-30T04:46:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/5/d520ceab75c65f29c27f95feb3e815778f1ef058.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/9/39c8ec186a1f6e04e484182504759cb75fdb5449.png)

---

<div class="post-metadata">

**Author:** ![Marc-Olivier](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@Marc-Olivier](https://community.glideapps.com/u/Marc-Olivier)\
**Post date:** [October 30, 2024, 8:33am UTC](https://community.glideapps.com/t/how-to-associate-a-single-companyid-with-multiple-contacts-upon-login/77437/6 "2024-10-30T08:33:52Z")

</div>

Hi @hiteras

If the client is adding a new contact himself then it’s quite straightforward.  
Supposing that you add a new contact with a show form screen.  
These screens are special in many ways:

1. the screen has to be linked to the contact table. If you want your contacts and your client to have access to the app then user table should be for both of them. Best practice is not to use in the case different table between client and contacts.

2. add all the required fields to the form screen except the company ID (the key is of the client)

To add the company id as the user submits the form, here are the instructions:

1. on the left pannel by clicking + you can add by scrolling down a special value of the current user row. You have to find and click on the client company id.

By doing this any contact added by a client will have the same company id

> **[Show Form Screen | Glide Docs](https://www.glideapps.com/docs/show-form-screen)**
>
> Show a form screen for the user.
