The CreatorCon Call for Content is officially open! Get started here.

Control who can see survey results per survey

AverageAdmin
Giga Expert

Apologies if this is the wrong board. Hopefully this is a simple answer.  Is it possible to control who can see survey results per survey?  For example, we have one ITSM survey that goes out when incidents are closed, and another HR survey that goes out when HR cases are closed. Is it possible to control who can see results of each survey independently?

8 REPLIES 8

@AverageAdmin search for "Access control" or "ACL":

KamilT_0-1751980141985.png



I don't know the exact table, but when you open one IT survey and one HR survey, you will see it in the URL, accordingly you can check if it is one and the same table, then you need to apply some conditions (e.g. role or assignment group), if it is two separated tables then it will be easier, you grant the roles accordingly:

KamilT_1-1751980240213.png


Let me know if you want to discuss something in more details

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Thank you. As far as I know all survey responses go to the same table (asmt_metric_result), so I don't know how to modify ACL's at the table level that would accomplish my goal. That is why I was wondering if there was something at the actual survey level that you could specify who has access to that survey's results. 

Mohammad Danis3
Tera Expert

Hi @AverageAdmin , 

You can create a new ACL on: asmt_assessment_instance table.
Operation will be Read.
for example:  In condition you can restrict acces by specific survey.

gs.getUserID() == current.assigned_to || current.metric_type.name == "YOUR SURVEY"

 


If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Mohammad Danish



Will that affect only the survey responses?  Or does that control who has the ability to fill out the survey as well?