User should not be able to raise incidents via self service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
How do I restrict this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @ameybhaisar any feedback?
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @ameybhaisar ,
you can create onSubmit client script like this
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
