ServiceNow ITSM

Community Alums
Not applicable

Hello Team,

 

I have below scenario:-  

 

If logged in user is member of current assignment group, then only show description field  .

 

How we can achieve this scripting, instead writing UI policy. 

11 REPLIES 11

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Community Alums 

 

What is the use case for the same? Description need to show everyone. you can use ACL or Query business rule as well. Just search on community for this.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Najmuddin Mohd
Mega Sage

Hi @Community Alums ,

You can write a read ACL with table Incident and Field Description with the following script.

answer = false;


if(gs.getUser().isMemberOf(current.assignment_group)){
	answer = true;
}

 

NajmuddinMohd_0-1736505272080.png



NajmuddinMohd_1-1736505291721.png



If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.

Harish Bainsla
Kilo Patron
Kilo Patron

Hi @Community Alums  you can use field level acl for it and if you want to explore about acl how it work check below link helps you to understand about acl 

https://www.servicenow.com/community/service-management-forum/how-to-make-a-field-visible-only-to-particular-group/m-p/422523

https://www.servicenow.com/community/incident-management-forum/acl/m-p/2641694

if my answer helps you mark helpful and accept solution 

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

you can achieve this using field level READ ACL with condition and no scripting

Assignment Group [IS DYNAMIC] {One of My Groups}

AnkurBawiskar_0-1736505483573.png

 

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