On a Case record, make custom field visible to members from selected assignment group

sumeetpande
Tera Contributor

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.

8 REPLIES 8

Bhuvan
Kilo Patron

@sumeetpande 

 

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-blog/leading-practices-for-acls-servicenow-adventures...

 

https://www.servicenow.com/community/servicenow-ai-platform-forum/understanding-servicenow-acl-a-gui...

 

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

@sumeetpande 

 

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

@sumeetpande 

 

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

Ankur Bawiskar
Tera Patron
Tera Patron

@sumeetpande 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader