Need to set Redirect to portal for external users when they try to access table at the end of URL

Anil9
Tera Contributor

Hi Community,

I have a requirement where a external user tries to access internal tables it should be redirected to portal.

For eg: https://example.service-now.com/sys_user_list.do

When the user hits above in the URL he will be landed on users table where he can see all the user records. 

Now when a user hits the URL he should be redirected to portal. How can I achieve this requirement. Could someone help.

6 REPLIES 6

ersureshbe
Giga Sage
Giga Sage

Hi,

Are you using SSO to direct the user? If user diesnt have enough role then they cant access the sys_user table. The mentioned scenario is happening for end user or support user. End user definately wont access the table.

If required you should modify the SPENTRYPAGE OOB script include based on the role redirect should happen.

Regards,

Suresh.

Regards,
Suresh.

Anil9
Tera Contributor

Hi Suresh,

Thanks for the reply!

I am using external user to who have the snc_external role. The snc_external role is given access to read on user table as when the external users want to create a RITM from portal in the RITM form they is a field to select user while filling the RITM form, So the snc_external role is given in ACL to access the user table. Now when I login as a external user to the URL https://example.service-now.com/ like this then user will be landed on portal page. But if the user hits URL like the table at the end (https://example.service-now.com/sys_user_list.do) he is able to see the records on user table. So when the user tries to hit the URL with a tablename at the end I want the user to be redirected to portal page.

Hi,

Your statement is proving You are using CSM module and snc_external is part of that module. This role specifically build for end user and it's deriving 5 roles. 

The recommendation, dont allow this role users should see the user table. It's not right design. They are part of customer_contact table. I personally feel, this design will impact complete OOB behaviors and you should customize more areas. 

Regards,

Suresh

Regards,
Suresh.

Bhavana Reddy
Mega Guru

HI Anil,

I believe if you modify the OOB "SPEntryPage" script include and redirect users with snc_external to Portal will solve your issue, We have configured the redirection logic and it always redirects end users to Service Portal whenever they try to access the servicenow instance, I never tested for the sys_user table (https://example.service-now.com/sys_user_list.do) but i believe it wont allow them to navigate directly to the snow backend view, just give it a try...

 https://dev-----.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=3647c37253221200b0b0547cedc587fd