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
2 Answers
Yes, it is now possible. I didn't hear from Kboy so I wrote an extension myself:
https://github.com/progressivetech/net.ourpowerbase.exportpermission
-
Great - I just tested github.com/progressivetech/net.ourpowerbase.exportpermission with 4.6.24, works like a charm! Thank You! Apr 8, 2017 at 5:22
-
No it's not possible as far as i know.
Your best chance is to create an extension that will :
- 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
- 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...