How to hide a workspace based on Group

MEZ1
Tera Contributor

Hi all,

 

I'm looking for how to hide the "Incident MyRO" workspace based on role.

How I can do so?

 

MEZ1_0-1744288634398.png

Thank you in advance!

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MEZ1 

 

https://www.servicenow.com/community/app-engine-forum/workspaces-how-to-hide-restrict-users-workspac...

 

To hide a workspace, you can configure 2 read ACLs of ‘type:ux_route’

for that workspace and add required roles to allow users to access it.

  1. Read ACL type ux_route with name = now.<workspace URL path>.home
  2. Read ACL type ux_route with name = now.<workspace URL path>.*

For example:
To hide access to CSM/FSM workspace,

  1. Get the workspace URL Path by navigating to the table: "sys_ux_page_registry"
  2. URL path for the record: "CSM/FSM Configurable Workspace" is "cwf/agent"
  3. Configure one read ACL of type: "ux_route" with Name: now.cwf.agent.home and another read ACL type: ux_route with the Name: now.cwf.agent.* and add required roles to these ACLs in order to allow users with mentioned roles only can access the workspace.
  4. If the workspace URL contains "/" replace it with "." in the ACL name.

@Harish Kota 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@MEZ1 

it looks like a custom workspace

simply do this. I assume you have created a custom role as well when you created this workspace

1) open that Workspace in UI builder and open the "Experience Settings"

2) check the roles associated to it. add your custom role to it

3) if the user satisfies the role for that audience then that workspace will be seen

4) if not then it will be hidden

So ensure only proper users are given that role

AnkurBawiskar_0-1744289939087.png

when you click on that roles, it opens up a ACL, add the correct roles there in roles section

AnkurBawiskar_1-1744290159047.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MEZ1 

 

https://www.servicenow.com/community/app-engine-forum/workspaces-how-to-hide-restrict-users-workspac...

 

To hide a workspace, you can configure 2 read ACLs of ‘type:ux_route’

for that workspace and add required roles to allow users to access it.

  1. Read ACL type ux_route with name = now.<workspace URL path>.home
  2. Read ACL type ux_route with name = now.<workspace URL path>.*

For example:
To hide access to CSM/FSM workspace,

  1. Get the workspace URL Path by navigating to the table: "sys_ux_page_registry"
  2. URL path for the record: "CSM/FSM Configurable Workspace" is "cwf/agent"
  3. Configure one read ACL of type: "ux_route" with Name: now.cwf.agent.home and another read ACL type: ux_route with the Name: now.cwf.agent.* and add required roles to these ACLs in order to allow users with mentioned roles only can access the workspace.
  4. If the workspace URL contains "/" replace it with "." in the ACL name.

@Harish Kota 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

AmM01
Tera Contributor

Ankur Bawiskar
Tera Patron
Tera Patron

@MEZ1 

it looks like a custom workspace

simply do this. I assume you have created a custom role as well when you created this workspace

1) open that Workspace in UI builder and open the "Experience Settings"

2) check the roles associated to it. add your custom role to it

3) if the user satisfies the role for that audience then that workspace will be seen

4) if not then it will be hidden

So ensure only proper users are given that role

AnkurBawiskar_0-1744289939087.png

when you click on that roles, it opens up a ACL, add the correct roles there in roles section

AnkurBawiskar_1-1744290159047.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader