Alberto Consonn
ServiceNow Employee

Hi muktha,

I'm not sure it will work but try to create the following Business Rule:

Create a business rule with the following information:

  • Active: True
  • Advanced: True
  • Table: sys_attachment (Attachments)
  • Condition: !gs.getUser().isMemberOf(<groupName>)); && gs.getSession().isInteractive()
  • Script:
hideAttachments();
function hideAttachments(){
         var answer = 'sys_created_by=' + gs.getUserName();
         current.addEncodedQuery(answer);
}

Hope this will help for your need.

Please, mark Correct or hit Helpful if you find my response worthy.

Cheers
Alberto