Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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?

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @ameybhaisar any feedback?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Dr Atul G- LNG
Tera Patron
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.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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

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

Chaitanya ILCR
Mega 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