Acl for Interaction table

Harshitha SR1
Tera Contributor

Interaction tables should need to behave same as HR case tables where only the member of the Assignment Group have access to see the interactions which are mapped to that Assignment Group and also the Supervisiory group of that AG. The member where whom to whom it is assigned to any member of these AG and the Supervisiory group that is related to this AG those are the only people needs to see the Interaction records. So there is already OOTB ACL which is there in the HR Workspace Agent and HR Virtual Agent scope.So we can utilise that OOTB ACL or create a new one for Workspace and Virtual Agent. 

1)Modify Interaction ACLs that in HR: Workspace and HR:virtual agent scope to allow only the following users to view interactions record. Role is ootb, Ag, Assigned to and supervisiory group

 

 

 

 

2 REPLIES 2

shloke04
Kilo Patron

Hi,

The way this works OOB is when ever a record may be a HR Case or any other Task based record gets linked to Interaction, that particular record appears in Related List as shown below:

find_real_file.png

issue here is I don't see a Field on either of the Table which you can use to identify how Interaction is getting linked to HR Case Table.

I would suggest may be a custom field of Type List created on Interaction table referring to task table and then when you associate a record through Interaction, you need to update that field first so that you will have a unique identifier based on which you can create a new ACL on Interaction table and use the script as below:

var getGroup = current.FieldName.assignment_group.getDisplayValue();
if(gs.getUser().isMemberOf(getGroup)){
answer = true;
}else{
answer = false;
}

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

SowmiyaC
Tera Contributor

Hi , 
how ACL works on Interaction table ? can you explain 
Regards,

Sowmiya