How to make Related List visible only to users with particular role

Arijit Saikia
Tera Contributor

Hi All,

In my personal developer instance, I am trying to make the Related List - Incident Communication Plan (in the Incident form) visible only for users with the Major_Incident_manager role. Can you please advise what's the best way to achieve this?

Currently if I impersonate as any ITIL user the Related List is visible. Please advise.

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

You can write an onLoad client script

if(g_user.hasRole('Major_Incident_manager'))
{
g_form.showRelatedList('related_list_name');
}
else
{
g_form.hideRelatedList('related_list_name');
}

 


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

You can write an onLoad client script

if(g_user.hasRole('Major_Incident_manager'))
{
g_form.showRelatedList('related_list_name');
}
else
{
g_form.hideRelatedList('related_list_name');
}

 


Please mark this response as correct or helpful if it assisted you with your question.

Thanks Sanjiv.

When I check the Incident Form for the Related List name, it is Incident Communication Plan->Source Incident.

However, when I search for this name in the Related Lists (Under System Definition) I cannot find it. What am I missing please? Check the screenshots.