Answers.Body: <p>There is not. In CiviCRM, ACL and permissions in general are contact-based: if you have permission to see a contact, then you see all related data about this contact. And if you see some data on screen, there is no reason you would not be able to export it.</p>
  
  <p>The solution to your issue is to customize the export code to check the logged-in user and eventually display an error message if you want to deny this user the export.</p>
  
  <p>Such a change would be in file CRM\Core\Report\Export\Excel.php as this file is responsible for generating all export files.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-24T04:23:50.470Z
Answers.LastActivityDate: 2016-06-24T04:23:50.470Z
Answers.UserDisplayName: cividesk
Body: <p>is there any way to set an ACL (or any other permission) that denies some groups the right to export contacts during Advanced Search, while still allowing the search to take place...</p>
  
  <p>I'm aware that I'd need to accomplish this by permitting specific groups to do this (if the feature exists), thereby denying others the permission.</p>
  
  <p>I couldn't see this option in the ACL setup process, /civicrm/acl?reset=1.</p>
  
  <p>Thanks!</p>
  
  <p>(Civi 4.6.14, Drupal 7.43)</p>
  
Tags: <acl><export><search-results>
Title: ACL setup to deny export rights
ThreadText: # ACL setup to deny export rights
  
  (Asked by: username_0 on 2016-04-15)
  
  is there any way to set an ACL (or any other permission) that denies some groups the right to export contacts during Advanced Search, while still allowing the search to take place...
  
  I'm aware that I'd need to accomplish this by permitting specific groups to do this (if the feature exists), thereby denying others the permission.
  
  I couldn't see this option in the ACL setup process, /civicrm/acl?reset=1.
  
  Thanks!
  
  (Civi 4.6.14, Drupal 7.43)
  
  **Tags:** acl, export, search-results
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-24. Score: 0 | Accepted answer
  
  There is not. In CiviCRM, ACL and permissions in general are contact-based: if you have permission to see a contact, then you see all related data about this contact. And if you see some data on screen, there is no reason you would not be able to export it.
  
  The solution to your issue is to customize the export code to check the logged-in user and eventually display an error message if you want to deny this user the export.
  
  Such a change would be in file CRM\Core\Report\Export\Excel.php as this file is responsible for generating all export files.
  
  
  ---
  
  