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.

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.

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

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