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

2 REPLIES 2

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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader