# How to direct each user group to a different page on logging in?

**URL:** <https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975>\
**Category:** Need help\
**Created:** [October 6, 2020, 11:17pm UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975 "2020-10-06T23:17:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasimy2712](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sasimy2712](https://forum.bubble.io/u/sasimy2712)\
**Post date:** [October 6, 2020, 11:17pm UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975/1 "2020-10-06T23:17:43Z")

</div>

Hi there,

Wish you happiness, prosperity, and health!

I am creating a log-in page where a user is directed to a new page which is different depending on the type of user group(such as a group of customers, company representatives, or admins) depending on the user group. I tried to add a dropdown input to categorize them on logging-in but couldn’t find the solution.

Thanks in advance!! 🙂

---

<div class="post-metadata">

**Author:** ![Nocodify](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodify/32/104659_2.png) [@Nocodify](https://forum.bubble.io/u/Nocodify)\
**Post date:** [October 7, 2020, 2:19am UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975/2 "2020-10-07T02:19:08Z")

</div>

Hi @sasimy2712,

You need to add a field in your User data type called “UserType”… then, on the workflow for logging in, you would have several “navigate to page” steps. Each navigate to page step would have an only when condition on it “when Current User’s UserType = X.”

Does that make sense?

Tal  
[Learn Bubble @ Nocodify.com](http://nocodify.com)

---

<div class="post-metadata">

**Author:** ![wesleyricardo14](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@wesleyricardo14](https://forum.bubble.io/u/wesleyricardo14)\
**Post date:** [October 7, 2020, 7:27pm UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975/3 "2020-10-07T19:27:00Z")

</div>

> [@sasimy2712](#):
>
> a ou administradores)

essa Informação fica guardado em qual banco de dados ? no usuario ou terei que fazer um banco de dados separadamente ? para clientes, representantes da empresa ou administradores ?

---

<div class="post-metadata">

**Author:** ![sasimy2712](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sasimy2712](https://forum.bubble.io/u/sasimy2712)\
**Post date:** [October 7, 2020, 10:16pm UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975/4 "2020-10-07T22:16:34Z")

</div>

Thanks Tal,

 ![Usertype](https://us1.discourse-cdn.com/bubble/original/3X/2/a/2ae30ad73e2aca297c2d792e1620a449dfbe07a9.png)  
Should I put ‘usertype’ in the filed name? What should I choose for ‘field type’?

 ![pic2](https://us1.discourse-cdn.com/bubble/original/3X/3/e/3e32f8f04e38236af23c862f06f4c7afba62f6ce.png)  
With the dropdown input, should I choose ‘Static choices’ for Choices style and type ‘Customers’ and Company representatives’ in ‘Choices’?

 ![pic 3](https://us1.discourse-cdn.com/bubble/original/3X/2/3/230805c08c0349c89876186f4329d60dba25e790.png)  
Should I put the ‘only when Current User’s UserType = X’ in step 1 in the picture? Or in step 2?

Thank you so much Tal!

---

<div class="post-metadata">

**Author:** ![Nocodify](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodify/32/104659_2.png) [@Nocodify](https://forum.bubble.io/u/Nocodify)\
**Post date:** [October 7, 2020, 11:05pm UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975/5 "2020-10-07T23:05:51Z")

</div>

1. Use text in the field type
2. Static choices in the dropdown is fine
3. Yes, put the only when condition in step 2, or any step thereafter that navigates them to a different page. You’d manually write out the condition. Something like Current User’s usertype is Customers.

---

<div class="post-metadata">

**Author:** ![sasimy2712](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sasimy2712](https://forum.bubble.io/u/sasimy2712)\
**Post date:** [October 8, 2020, 11:02am UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975/6 "2020-10-08T11:02:52Z")

</div>

Thanks Tal!

I tried to do a test run but it seems I cannot do it because I cannot allocate a password to a user. Is there any way I can do it?

---

<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:** [December 15, 2020, 11:17pm UTC](https://forum.bubble.io/t/how-to-direct-each-user-group-to-a-different-page-on-logging-in/114975/7 "2020-12-15T23:17:43Z")

</div>

Closed on December 15, 2020, 11:17pm UTC

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