Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide all worknotes added on Incident from users not member of fulfillment group

IAmIshan
Tera Guru

I have to hide all the worknotes updated on Incident from the users not part of assignment group. 

6 REPLIES 6

Sayali Gurav
Kilo Sage

Hello @IAmIshan ,

 

Open a incident -> Go to the Note Note tab -> Click on Filter Activity icon -> Uncheck the Checkbox which you want to hide the worknotes.

Your all worknotes will be hide.

SayaliGurav_0-1705497995092.png

 

If this will helps you to resolve your problem then mark as helpful as well as accept as solution.

 

Thanks and Regards,

Sayali Gurav

Hi @Sayali Gurav - I want to do it for all users who are not part of assignment group.

 

Navigate to Access Control Rules:
- Go to the Application Navigator.
- Open "System Security" > "Access Control" > "Rules".

Create a New Access Control Rule:
- Click on "New" to create a new access control rule.

Define the Rule Conditions:
- Set the "Operation" to "Read".
- Specify the target table as "Incident" or the relevant table.
- Define a condition that checks if the user is not a member of the fulfillment group.
- Example: `FulfillmentGroup is not in [user().groups]`

Define the Script:
- In the "Script" field, enter the script to deny read access to the worknotes for users not in the fulfillment group.
- Example: `current.work_notes.canRead() && gs.hasRole('fulfillment_group')`

Save the Access Control Rule:
- Save the access control rule.

Impersonate any user who is not part of assignment group. 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @IAmIshan 

 

You mean, you dont want to show the already entered worknotes or you want to hide this field. 

*************************************************************************************************************
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]

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