- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 03:42 AM - edited ‎08-23-2024 04:21 AM
Hello everyone,
I have a requirement where members of the "App Engine Admins" group need to have access to cancel change requests created by any user. By default, only the user who creates the request has access to cancel their own record. Can anyone please assist me end to end for implementing this?
Thanks,
Praveen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 04:41 AM
Hello @praveen_rajan ,
There are two ways by which cancellation can be done.
1. UI Action 2. Drop-down value in state field.
----
To restrict an UI action visibility, you can put your conditions in the 'Condition' field in UI action record.
Example - Suppose "I" button should be visible to only members of 'App Engine Admins' group. In that case, you can put below query in condition box (right above script box) -
gs.getUser().isMemberOf(sys_id of group);
OR
//Best Practice - Store sys_id of group in system property
gs.getUser().isMemberOf(gs.getProperty(name_of_sys_property_without_space));
This script will check if current logged-in user is member of assignment group on current record.
Similarly, For drop-down of state field, Using client script & script include, you can check membership and use g_form.removeOption function to remove state value.
In addition to this, you can abort the operation & show appropriate message using Business Rule if state changes to cancelled and current logged in user is not member of given group.
Hope it helps.
If my response helps you in any way, kindly mark this as Accepted Solution/Helpful and help in closing this thread.
Regards,
Shubham

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 04:45 AM
Hi @praveen_rajan ,
Go to UI actions>Cancel change
1)
2) Add or condition to open the cancel button to "App Engine Admins" as highlighted below.
Make sure App Engine admins group has write access on the change request table
Hope this helps!!!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 04:41 AM
Is cancelling done through a UI action? How is your current process customized? OOB any 'itil' or 'sn_change_write' user can cancel a change.
If it is change to just 'current.opened_by' you can update it with gs.getUser().isMemberOf('sys_id_of_your_group');
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 04:41 AM
Hello @praveen_rajan ,
There are two ways by which cancellation can be done.
1. UI Action 2. Drop-down value in state field.
----
To restrict an UI action visibility, you can put your conditions in the 'Condition' field in UI action record.
Example - Suppose "I" button should be visible to only members of 'App Engine Admins' group. In that case, you can put below query in condition box (right above script box) -
gs.getUser().isMemberOf(sys_id of group);
OR
//Best Practice - Store sys_id of group in system property
gs.getUser().isMemberOf(gs.getProperty(name_of_sys_property_without_space));
This script will check if current logged-in user is member of assignment group on current record.
Similarly, For drop-down of state field, Using client script & script include, you can check membership and use g_form.removeOption function to remove state value.
In addition to this, you can abort the operation & show appropriate message using Business Rule if state changes to cancelled and current logged in user is not member of given group.
Hope it helps.
If my response helps you in any way, kindly mark this as Accepted Solution/Helpful and help in closing this thread.
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 06:03 AM
Thanks for your response @ShubhamGarg . Can you please elaborate more on script include and client script with example.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 04:45 AM
Hi @praveen_rajan ,
Go to UI actions>Cancel change
1)
2) Add or condition to open the cancel button to "App Engine Admins" as highlighted below.
Make sure App Engine admins group has write access on the change request table
Hope this helps!!!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025