Answers.Body: <p>Yes, it is now possible. I didn't hear from Kboy so I wrote an extension myself:</p>
  
  <p><a href="https://github.com/progressivetech/net.ourpowerbase.exportpermission" rel="noreferrer">https://github.com/progressivetech/net.ourpowerbase.exportpermission</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-08T05:22:38.313Z
Answers.Text: Great - I just tested https://github.com/progressivetech/net.ourpowerbase.exportpermission with 4.6.24, works like a charm!
  
  Thank You!
Answers.UserDisplayName: Detlev Sieber
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-10T03:36:44.740Z
Answers.Text: Great work Jamie.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-05T22:05:41.667Z
Answers.LastActivityDate: 2017-04-05T22:05:41.667Z
Answers.UserDisplayName: Jamie
Answers.Body: <p>No it's not possible as far as i know.</p>
  
  <p>Your best chance is to create an extension that will :</p>
  
  <ol>
  <li>remove export actions from the menu after a search if the user doesn't have enough permission by using hook_civicrm_searchTasks : <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_searchTasks" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_searchTasks</a></li>
  <li>remove the export buttons from reports also. I guess you could do it by creating a alternative version of CRM/Report/Form/Actions.tpl that will check for the permissions before displaying the buttons. Yet, it still a display only hack and you might want to change CRM/Report/Form.php to ignore outputMode = csv...</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-20T18:51:56.393Z
Answers.Text: I would be interested in such an extension - did you every write it? Can you share?
Answers.UserDisplayName: Jamie
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-04T19:36:46.560Z
Answers.Text: @Jamie, not yet just looked at this again today, will update if i make any progress
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-13T20:12:27.937Z
Answers.LastActivityDate: 2016-09-13T20:12:27.937Z
Answers.UserDisplayName: samuelsov
Body: <p>Is there any way to restrict data export while still allowing users to see all data? I still want to give this permission '<em>View ANY CONTACT in the CiviCRM database, export contact info and perform activities such as Send Email, Phone Call, etc</em>.' but don't want them to be able to export the contacts. civi 4.6.11, drupal 7</p>
  
Tags: <contacts><permissions><export>
Title: is there any way to restrict data export?
ThreadText: # is there any way to restrict data export?
  
  (Asked by: username_0 on 2016-09-13)
  
  Is there any way to restrict data export while still allowing users to see all data? I still want to give this permission '*View ANY CONTACT in the CiviCRM database, export contact info and perform activities such as Send Email, Phone Call, etc*.' but don't want them to be able to export the contacts. civi 4.6.11, drupal 7
  
  **Tags:** contacts, permissions, export
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-04-05. Score: 9 | Accepted answer
  
  Yes, it is now possible. I didn't hear from username_0 so I wrote an extension myself:
  
  <https://github.com/progressivetech/net.ourpowerbase.exportpermission>
  
  > **Comments:**
  > **username_2**: Great - I just tested https://github.com/progressivetech/net.ourpowerbase.exportpermission with 4.6.24, works like a charm!  Thank You!  
  > **username_3**: Great work username_1.  
  
  ---
  
  ### Answer by username_4 on 2016-09-13. Score: 1
  
  No it's not possible as far as i know.
  
  Your best chance is to create an extension that will :
  
  1. remove export actions from the menu after a search if the user doesn't have enough permission by using hook\_civicrm\_searchTasks : <https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_searchTasks>
  2. remove the export buttons from reports also. I guess you could do it by creating a alternative version of CRM/Report/Form/Actions.tpl that will check for the permissions before displaying the buttons. Yet, it still a display only hack and you might want to change CRM/Report/Form.php to ignore outputMode = csv...
  
  > **Comments:**
  > **username_1**: I would be interested in such an extension - did you every write it? Can you share?  
  > **username_0**: @username_1, not yet just looked at this again today, will update if i make any progress  
  
  ---
  
  