Make assignment gorup readonly false in deferred state in Remediation task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 09:53 PM - edited 02-27-2025 10:01 PM
Hi Team
I am trying to make the Assignment Group field editable when the State is Deferred in a Remediation Task (sn_vul_vulnerability) for a specific custom group. I am using a UI Policy and a Script Include, but it is only executing for admin users and not for non-admin users.
I want every user in a group to edit assignment group when state is deferred.
Best Regards,
Afroze
- 454 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 11:16 PM
simply use field level WRITE ACL on that field and use script in advanced section
answer = gs.getUser().isMemberOf('Group Name');
OR
you can use display business rule and check if logged in user is member of that group and store in g_scratchpad variable
Then use onLoad client script and get the scratchpad variable and based on that make field readonly or editable
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-28-2025 01:09 AM
I have used this, but it's no use.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2025 06:37 AM
so please share what did you configure and what didn't work
what debugging did you perform?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader