# User Sign-up with multiple roles

**URL:** <https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061>\
**Category:** Ask for Help\
**Created:** [September 1, 2020, 11:32am UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061 "2020-09-01T11:32:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddharth\_Pandit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siddharth_pandit/32/5792_2.png) [@Siddharth\_Pandit](https://community.glideapps.com/u/Siddharth_Pandit)\
**Post date:** [September 1, 2020, 11:32am UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061/1 "2020-09-01T11:32:25Z")

</div>

Hello,

I am currently building an app where i have multiple user types. I want each user to see content based on their role. I have built a database, setup screen UI and some other features.

I am stuck at the following:

1. How do i allow a user sign up with 1 form, where the content in the app changes based on their role? (Example, if there are students and teachers as 2 roles, the student should see only list of teachers and teachers should only see list of students upon profile set-up. This is after the initial email ID signup.

2. Booking System. I want to in-corporate a booking system for the student where the teacher is able to add their avaliability through their account and the student is able to book a class with the teacher through the date, time and other fields. The booking should be seen in teachers account.

I have seen multiple examples from glide experts and tutorials given from glide but unable to get my head around the conditions, visibility and initial form setup. I have considered zapier as a tool to integrate things but would like to get certain clarity.

Look forward to your help.

Kind regards,  
Sidd

---

<div class="post-metadata">

**Author:** ![AyS\_0908](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ays_0908/32/27349_2.png) [@AyS\_0908](https://community.glideapps.com/u/AyS_0908)\
**Post date:** [September 1, 2020, 1:21pm UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061/2 "2020-09-01T13:21:24Z")

</div>

> [@Siddharth\_Pandit](#):
>
> How do i allow a user sign up with 1 form, where the content in the app changes based on their role? (Example, if there are students and teachers as 2 roles, the student should see only list of teachers and teachers should only see list of students upon profile set-up. This is after the initial email ID signup.

Hi, as you mentioned, you’ve probably have to play with “visibility conditions”:

1. Create 2 inline lists: Teachers | Students
2. In “Teachers” inline list: set the condition visibility _If Signed-in user IS role ‘Student’_
3. And vice versa for the “Students” inline list

---

<div class="post-metadata">

**Author:** ![Siddharth\_Pandit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siddharth_pandit/32/5792_2.png) [@Siddharth\_Pandit](https://community.glideapps.com/u/Siddharth_Pandit)\
**Post date:** [September 1, 2020, 2:50pm UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061/3 "2020-09-01T14:50:51Z")

</div>

Hi,  
thanks for the reply.

So i am showing the list of students and teachers in 2 seperate tabs. In each tab, the style is ‘list’.

I have worked my way within the visiblity conditions many times and tried the 'if signed-in user role is student but for some reason it doesnt seem to work. I have a feeling it might be database that is not allowing it to show the relevant tabs?

The database is as follows: Posts, profile(students), profiles(teachers), book appointment, app logins.

When i sign in with email ID, the profile saves in profile(students) by default. Any chance i need to add anything else in the database?

---

<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:** [September 1, 2020, 4:01pm UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061/5 "2020-09-01T16:01:54Z")

</div>

You need to combine the two Profiles sheet into one, and have a “Role” columns to save the info whether the user is a student or a teacher.

---

<div class="post-metadata">

**Author:** ![Siddharth\_Pandit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siddharth_pandit/32/5792_2.png) [@Siddharth\_Pandit](https://community.glideapps.com/u/Siddharth_Pandit)\
**Post date:** [September 2, 2020, 4:15am UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061/6 "2020-09-02T04:15:54Z")

</div>

Hey,  
Thanks for the input. I have done that as well.

For this, i assume i will be setting tab visibility? And then in each of those tabs add visibility conditions? So, in the form, when the role is student, it should only show the teachers tab, with the students profile and the same applies the other way around?

---

<div class="post-metadata">

**Author:** ![AyS\_0908](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ays_0908/32/27349_2.png) [@AyS\_0908](https://community.glideapps.com/u/AyS_0908)\
**Post date:** [September 2, 2020, 1:09pm UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061/7 "2020-09-02T13:09:46Z")

</div>

Hi,  
Try this:

- 1 G-Sheet with columns: name | role (student or teacher)
- One Glide tab with 2 inline lists: one with **filter** “role” is _teacher_ + **condition visibility** is _user signed-in is “student”_; and the other way round for the other inline list.  
Cheers

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 2, 2020, 1:46pm UTC](https://community.glideapps.com/t/user-sign-up-with-multiple-roles/15061/8 "2020-09-02T13:46:39Z")

</div>

> [@Siddharth\_Pandit](#):
>
> Booking System.

To help with some ideas, check out the Booking example in [https://concepts.glideapp.io/](https://concepts.glideapp.io/). Might not be exactly what you are looking for, but should get you started.
