Hello,

I have several web screens for the application. They are all visible to whoever access the app. 

However I want to add a webscreen that is only accessible to the admins. 

I want the web screen to be on my top menu

So when a regular user sees the top menu they do not see the admin page

But when I see the top menu I can see the admin page


Is this possible ?


Thank You


Siavash Noorizadeh wrote:

Hello,

I have several web screens for the application. They are all visible to whoever access the app. 

However I want to add a webscreen that is only accessible to the admins. 

I want the web screen to be on my top menu

So when a regular user sees the top menu they do not see the admin page

But when I see the top menu I can see the admin page


Is this possible ?


Thank You


Please go through the Tutorial:

https://youtu.be/BwTze_dTh8Y


Hi,

Define a role Admins.

Assign user to the Admins role.

Check the Admins role on the screen only to be accessable to the Admins user.

In the common/menu webblock place the menu item webblock of the admins screen in an IF checking the that the user has the Admins role.

https://www.outsystems.com/evaluation-guide/role-based-access-control-for-outsystems-applications/

https://success.outsystems.com/Documentation/11/Developing_an_Application/Secure_the_Application/User_Roles

Regards,

Daniel



Solution

Hi Siavash,

Please do the same as per the screens. First needs to create a role in the service studio-> logic->Role.  Then go to the screens and only checked the role you wants to give permission as per the screens. You have to publish the application.  

Then, you need to create a user to specify that role by using your  https://<your serverlink>/users

there you have to create the user and specify the role to him as an admin.

Please follow the above instructions. I hope it will work fine.

Thank you,

Sudip

Solution

@Sudip,

You mis the step to also condition the menu item to only be visible for the admin role.

Regards,

Daniel

Daniël Kuhlmann wrote:

@Sudip,

You mis the step to also condition the menu item to only be visible for the admin role.

Regards,

Daniel

Yes needs to check the Menu tab if the tab is access for the admin. check the Role by using if condition. put checkadminRole(User id) and if it is true then the tab will show.  and can able to access it. It will work fine.

Thank you,

Sudip


Hello,

Thank you all for the huge feedback.

There are multiple solutions here so I'll choose one


Thanks Again everybody