Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to restrict Custom Workspace

Kaustubh k
Tera Expert

Hi All,

 

We have a custom workspace and I want to show that workspace to some users only who have role A, how we can do this and restrict other users.

 

Thanks in Advance

1 ACCEPTED SOLUTION

@Kaustubh k 

that's controlled using this ACL, so if user has this role then only he/she sees that workspace in menu

Ensure your ACL has your scoped app role only

1) visit UI builder and open your workspace

55.png

2) then open the ACL from here, ensure it has your role only there

55.png

55.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

12 REPLIES 12

Dr Atul G- LNG
Tera Patron

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1167916

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

Ankur Bawiskar
Tera Patron

@Kaustubh k 

you can handle this using Homepage Destination Rule

Homepage Redirect Rules in Next Experience 

if other user without Role A logins and navigates directly to your workspace using URL (even though that workspace is not seen in workspaces) then you can use UI script and take them again to home

something like this

How to Disable Agent Workspace After Migrating to Service Operations Workspace (SOW) 

addLoadEvent(function() {

    if (document.URL.indexOf('workspace/hr') != -1) {
        window.location = '/now/hr/agent/home';
    } else {
        return;
    }

});

55.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Kaustubh k 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Kaustubh k
Tera Expert

Hi @Ankur Bawiskar ,

But how can we make that workspace visible inly to group A or user having specific role in workspace menu item itself.

 

Thanks