On a Case record, make custom field visible to members from selected assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
We have built a custom field on Case table and currently this field in visible to everyone on UI for all 4 Case Type. There is no any workflow or automation built on this custom field. Now we have business requirement to make this field visible to members of specific assignment group only. I understand this can be done via UI policy, ACL, etc. but want to check if this affect maintainability, upgradability of the instance. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This can be easily done with UI Policy or ACLs and should not be impacting your upgradeability and maintainability. These are very common requirements and will not impact the performance of the system, make sure when you create the policy or ACL, it is configured correctly.
https://www.servicenow.com/community/developer-articles/ui-policies/ta-p/2831805
See below best practices that could guide you,
https://www.servicenow.com/community/developer-forum/best-practices-for-ui-policies/m-p/2838106
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for marking the post as helpful.
If it helped to answer your query, please accept the solution. As per community guidelines, you can accept more than one post as Accepted Solution. This will help community members to find the right solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Did you get a chance to review this ?
If my response helped to answer your query, please accept the solution and close the thread.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
2 ways to handle
1) field level READ ACL -> use advanced script and check group membership (Recommended)
answer = gs.getUser().isMemberOf('Group ABC');
OR
2) onLoad client script + GlideAjax -> check group membership and show/hide the field
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