121
Views
10
Comments
Solved
How do I separate the two users in the login

i have two users in the same application that i create but they have different pages after logging in

How do I do this in the outsystem?

How does the system identify each user by identity?


Screenshot86.png

Hi @Shrouq AlBogmi,

Can you please specify different users or user roles, because if there is a user role it is much easier to assign landing pages for a different user role. 

Here I provide you one sample oml file for your reference(user redirect to the homepage as per User role assigned).

You can check the implementation through below link:

https://personal-6qqoqcvk.outsystemscloud.com/RoleWiseHomepageforUser/Login

Login credentials:

Admin login: Username:- Admin Password:- 123456

Employee Login: Username:- Employee1, Password:- 123456


Kind Regards,

Narendra Bhangale.

RoleWiseHomepageforUser.oml

thank you so much !


Hi @Shrouq AlBogmi,

If your issue resolved, please can you "mark as solution" to post.


Kind Regards,

Narendra Bhangale.

Dears, I have faced the same issue could you assest on it please?

You can assign roles to your user and then you can separate them. For assigning roles you can use JavaScript.


solution.JPG

Hi @Shrouq AlBogmi,

Can you please specify different users or user roles, because if there is a user role it is much easier to assign landing pages for a different user role. 

Here I provide you one sample oml file for your reference(user redirect to the homepage as per User role assigned).

You can check the implementation through below link:

https://personal-6qqoqcvk.outsystemscloud.com/RoleWiseHomepageforUser/Login

Login credentials:

Admin login: Username:- Admin Password:- 123456

Employee Login: Username:- Employee1, Password:- 123456


Kind Regards,

Narendra Bhangale.

RoleWiseHomepageforUser.oml

thank you so much !


Hi @Shrouq AlBogmi,

If your issue resolved, please can you "mark as solution" to post.


Kind Regards,

Narendra Bhangale.

Dears, I have faced the same issue could you assest on it please?

You should always create Roles and then need to assign these roles to the users , so you can restrict screens based on the roles rather on users

Dear, I have face the same issue and I tried to do the solution you suggested it did not work, could you assist on it please ?

https://www.outsystems.com/forums/discussion/71230/how-do-i-separate-the-two-users-in-the-login/


for more information

our users are patient and psychiatrist so we want them have different home page when they login, I will appreciate your help!

the picture below, describes that either you are a psychiatrist or patient the psychiatrist page will be appears.


regards,



Hello @Abdulaziz Almussairy,


Could you please share or elaborate what error you get on above login flow.

So it will be clear to understand your problem for different user role navigation.


Regards,

Narendra Bhangale.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.