We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

User should not be able to raise incidents via self service

ameybhaisar
Tera Contributor

Hi Team,

 

I have a requirement that users should not be able to raise incidents via self-service view.

To restrict this, we have disabled the UI Action - 'New' from the Self-Service module.

 

But some users are searching incident.do and the form is getting opened in self-service view like below 

ameybhaisar_0-1761213639382.png

How do I restrict this ?

 

5 REPLIES 5

GlideFather
Tera Patron

Hi @ameybhaisar,

 

what role this user have? I believe that creating incidents shall be "general rights" for all users...

 

Why would you like them to restrict this?

 

_____
100 % GlideFather experience and 0 % generative AI

Hi @ameybhaisar any feedback?

_____
100 % GlideFather experience and 0 % generative AI

Dr Atul G- LNG
Tera Patron

Hi @ameybhaisar 

You’re trying to break the core concept of Self-Service. The idea of Self-Service is that users perform actions themselves. Ideally, you should redirect the user to the portal so they can log an incident from there directly.

*************************************************************************************************************
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]

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

Chaitanya ILCR
Giga Patron

Hi @ameybhaisar ,

you can create onSubmit client script like this

ChaitanyaILCR_0-1761214398786.png

function onSubmit() {
    //Type appropriate comment here, and begin script below
    if (g_form.getViewName() == 'ess') {
        g_form.addErrorMessage('Self Service View ');
        g_navigation.open('incident.do?sysparm_view=default');
        return false;
    }
}

 

g_navigation.open() open the form in the default view 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya