how to hide workspace for specific groups or role

Su Tyagi
Tera Contributor

Hi all,

I want to hide asset workspace from specific groups. I tried using ACL for ux path but didn't get any success.

Any happy would be highly appreciated,

 

Thanks

Su

13 REPLIES 13

Su Tyagi
Tera Contributor

No, it's not working, I tried with both the applications. I am using below script for to restrict the users with "heaplus_user" to access Asset workrspace

answer = !gs.getUser().hasRole('heaplus_user');

@Su Tyagi Ux_route ACL works very well.

 


1. You need to logout after creating the ACL.

2. Can you share the screenshot of your ACL.


Raghav
MVP 2023
LinkedIn

Su Tyagi
Tera Contributor

yeah sure, using 2 read ACL of type "ux_route" as below:

 

SuTyagi_2-1756443004336.png

 

SuTyagi_1-1756442950557.png

 

 

1. You need only 1 ACL.

2. Your 1st screenshot does not show the script, but the configuration is fine. so the script should be something like:

answer = true;

if(gs.getUser().isMemberOf('sys_id of group'))
answer = false;

 

3. Why do you have 2 ACLs? you can deactivate the 2nd one.

4. After making changes to ACL, you can relogin if it does not work.


Raghav
MVP 2023
LinkedIn

@Su Tyagi did this work?


Raghav
MVP 2023
LinkedIn