- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2018 08:04 PM
Hi,
I want to hide Standard Change link in Change Request Interceptor if logged in user is in specific group.How can I achieve this.I have tried in calling method in the Script Include which returns true or false but it is not working.
Thanks
Ravi
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2018 08:52 PM
The only way you could hide this on basis of group is a query business rule on sys_wizard_answer table.
if(gs.getUser().isMemberOf('group_sys_id')){ //restrict for a particular group
current.addQuery('name','!=','answerName');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2019 01:41 AM
Can you please post screenshots of query br?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2019 10:38 PM
Its working now.
Many Thanks Gurpeet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2020 04:17 AM
Dear Gurpreet,
Can you please mention what field or value i need to mention on the current.addQuery(). What would the 'answerName' refer to?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2020 02:00 PM
go to https://instance.service-now.com/sys_wizard_answer_list.do
Find the value in the 'name' column that you want to filter out. That is what gets put in the 'answer name' above.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2020 01:55 PM
I know this is an old thread, but you sir or madam are a wizard. I never would have thought of doing that, but it is a brilliant approach and works like a charm! Thank you!!