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

Non-HR Groups member shouldn't access ESC portal in servicenow

VivekO024243573
Tera Contributor

i want to put the restriction if the User belongs to any non-HR groups should not be able to access ESC portal in Servicenow. The user should be redirected to the servicenow homepage when he/she tries to access the ESC portal.

3 REPLIES 3

GlideFather
Tera Patron

Hi @VivekO024243573,

 

as it is ESC, couldn't it be resolved by splitting taxonomy? One taxonomy for HR and another fro non-HR?

 

That's the easiest possible way and actually the essence of ESC... with portals you would need more portals, but with ESC you just create corresponding taxonomies and things like branding and some general behaviour would be managed easier.

 

What do you say about this option?

_____
100 % GlideFather experience and 0 % generative AI

lauri457
Tera Sage

You can't precisely restrict someone from a portal as the portal is essentially a theme record with the header and footer. All pages are available in all portals (excluding pages with page route maps) or using the $sp.do ui page. For obvious reasons any security shouldn't be implemented on the client side.

 

If you look at a fresh instance with the explicit roles plugin and esc, you'll see that only snc_internal and maybe a few others can see the /esc header. Many pages also require the snc_internal role such as the oob homepage of the esc portal. Thus when a external user navigates to /esc they'll just get a headerless 404 page but they might be able to navigate to some other pages just without the header. 

 

This is the way to go with it in general, tie access to roles and the role to the group instead of the access to group membership. This allows for way easier "refactors" as well. Restrict the access server-side, then auto-redirect or help users navigate to the correct place from the 404 page. 

 

Here's a fun related activity to try: on a production instance using a non-priviledged user navigate to 

/$sp.do?id=lf&table=sys_user&sys_id=javascript:gs.getUserID() and see how many fields are editable. 

Ankur Bawiskar
Tera Patron

@VivekO024243573 

which user you are referring?

Agent or end users?

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