Getting related lists in a form to restrict access

divvi_vamsi
Mega Expert

How can we refer to related lists in a form to restrict their access to specific group of people?

Thanks,

Divya

1 ACCEPTED SOLUTION

Divya,



You can restrict the records in the related list by creating a read ACL on the related list table.


For example, I can create a read ACL on task_sla table and restrict itil users from viewing that records


For admin:


find_real_file.png


For itil:


sla.PNG



Thanks,


Abhinay




PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

14 REPLIES 14

Abhinay Erra
Giga Sage

You can write an onLoad client script and check for the roles and use this method to hide the related list. You will get the related list name by going on to the list and configure -> list control as shown below


g_form.hideRelatedList('related list name');


For example, if I want to hide Task SLA related list on Incident, I would write


g_form.hideRelatedList('task_sla.task');


find_real_file.png


find_real_file.png




Thanks,


Abhinay




PS: Hit like, Helpful or Correct depending on the impact of the response


That's right but the entire form is being hidden with this script...



The condition given by me initially was:


Type: UI Page


Operation: Read


Name: Incident


Role: ITIL //for testing purpose



Later now I changed that to


Type: Record


Operation: Read


Name: Incident.None


Role: ITIL




Thanks,


Divya


You wanted to hide the related list right?


Yes, just the related list...