- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 09:33 AM
Group Manager and Secondary Manager should have access to edit (add/remove) members to the group(s) they own in UAT, SIT & PREPROD (not in PROD & DEV)
Edit buttton should visible to the group managers and secondary manager in UAT, SIT AND PREPROD not in Dev and Prod instances.
Please help me to implement this functionality.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 08:19 PM
you can configure the list control and use Omit edit condition script field
check the instance name and show/hide
If that field is not present when you configure list control then confirm the form layout and add that
Then use this script in the field
answer = true; // omit it
var instanceName = gs.getProperty('instance_name');
if (instanceName == 'UAT Instance Name' || instanceName == 'SIT Instance Name' || instanceName == 'PREPROD Instance Name') {
answer = false; // don't omit it
}
Also ensure manager and secondary manager is able to edit using ACL, refer below link for that and enhance
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 08:19 PM
you can configure the list control and use Omit edit condition script field
check the instance name and show/hide
If that field is not present when you configure list control then confirm the form layout and add that
Then use this script in the field
answer = true; // omit it
var instanceName = gs.getProperty('instance_name');
if (instanceName == 'UAT Instance Name' || instanceName == 'SIT Instance Name' || instanceName == 'PREPROD Instance Name') {
answer = false; // don't omit it
}
Also ensure manager and secondary manager is able to edit using ACL, refer below link for that and enhance
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 05:21 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 03:40 AM
Thanks Ankur. It is working fine with the above solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 08:48 AM
Ankur,
Now Group managers can see the Edit button, but data is not visible in Edit slush bucket. Please see the below screen for your reference. Could you please help me on this issue.