- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 04:37 AM
Hello All,
I have a requirement that while an incident is in progress, no user other than the admin and incident Assignment group member should be able to change the 'Assignment group' and 'Assigned to' fields.
I wrote a UI policy script for this; however, it does not work for the group. Please see attached script and picture for your references.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 04:53 AM
You can achieve this via field level Write type Deny Unless ACL.
PFB sample to restrict the assignment group.
var group_name = current.assignment_group.getDisplayValue();
if (gs.getUser().isMemberOf(group_name)) {
answer = true;
} else {
answer = false;
}
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 04:53 AM
You can achieve this via field level Write type Deny Unless ACL.
PFB sample to restrict the assignment group.
var group_name = current.assignment_group.getDisplayValue();
if (gs.getUser().isMemberOf(group_name)) {
answer = true;
} else {
answer = false;
}
Regards,
Siva