Is it possible to restrict the Assigned To field so that it displays only the users who are members
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I found a solution using a Dictionary Override on the Assigned To field. By overriding the Reference Qualifier, we can pass the current form's Assignment Group to a Script Include, retrieve the corresponding group members using GlideRecord, and restrict the Assigned To lookup to only those users. I'm attaching the reference script for reference. Is there any other way please suggest ?
- 100 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hello @PurnaChandM
Yes, using a Dictionary Override on the assigned_to field is a valid approach if this behavior is required only for your specific extended Task table.
Since assigned_to is inherited from the Task table, I would not modify the parent Task dictionary entry unless you want the change to affect multiple Task-based tables. A Dictionary Override is safer because it limits the reference qualifier change to only that table.
The recommended approach would be:
Create a Dictionary Override for assigned_to on the required table
Override the Reference Qualifier
Use an Advanced Reference Qualifier with a Script Include
In the Script Include, query sys_user_grmember using the current assignment_group
Return only active users who are members of that group
I would also suggest adding an onChange Client Script on assignment_group to clear assigned_to when the group changes. Otherwise, an old assignee may remain even after the assignment group is changed.
For better data integrity, you can also add a before Business Rule to validate that the selected assigned_to user belongs to the selected assignment_group. The reference qualifier controls the lookup, but backend validation is useful because client-side filtering can still be bypassed through imports, APIs, scripts, or list edits.
Other options like Client Script alone, Assignment Rules, or ACLs are not ideal for this requirement. Client Scripts are only UI-side, Assignment Rules are for auto-assignment, and ACLs are for security, not lookup filtering.
So, the best supportable design is:
Dictionary Override + Advanced Reference Qualifier + Script Include
Optional Client Script to clear Assigned To when Assignment Group changes
Optional Business Rule for backend validation
Please mark this as Helpful if it helps.
If this addresses your question, please mark this response as Accepted Solution
or mark has helpful
if you find it helpful.
Thank you!
TejaswiniY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
57m ago
Hi @PurnaChandM
Thank you for marking it Helpful.
If it resolved your issue, please also mark it as Accept as Solution.
Thank you!
Tejaswini Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
@PurnaChandM
javascript:'sys_idIN' + new MyGroupUtils().getGroupMembers(current.assignment_group);