How to direct user to appropriate homepage

How to direct user to appropriate homepage

  

Example of issue:

I need all users to enter the application by going to a single URL in browser (www.example.com).

When they enter username and password and click "LOGIN", different users should be directed to a "homepage" that is specific to their assigned role.

User A is assigned role HRDepartment

User B is assigned role FinanceDepartment

How do I make each user get automatically directed to their appropriate department-specific homepage?

Thanks.

hi Jason,

 I suppose you can add a condition in the login action. After all the validations are done add a if condition at the last to check if the current user role HR or Finance department and set the destination accordingly

Hope this answers your question.

Cheers

Hi Jason,

In the action of the "Login" button, add a 'Switch case' or the 'If Else' before the 'Destination' and then according to different conditions redirect users to different screens.