Answers.Body: <p>If you give that role access to No Activities, and then build a Drupal View that has the required filters then those users would be able to 'see' the restricted Activities but no others.</p>
  
  <p>There is no reason you can't then deliver this view as a Tab for those folk to use (though i don't have the extension link to hand for that part of the suggestion)</p>
  
  <p>EDIT: I think this one will offer a good starting point: fuzion.co.nz/blogs/view-show-current-users-activities</p>
  
  <p>ps 4.6.35 is not secure</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-02T22:06:00.097Z
Answers.Text: Hi Pete, thanks, this might not work for me because the users will have a different  work flow. At the moment, users just go to their contact and see the activities assigned to them, if i follow this approach the workflow will be different which i think they will resist the change. I already have 4.6.38 on stage, just to put in production soonest.
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T00:09:08.793Z
Answers.Text: if the view is showing as another tab then i am not sure it changes their workflow much.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T08:14:51.510Z
Answers.Text: it seems to be a big change because at the moment they just need to go to their own contact and see all assigned activities. If it a new tab it means they have to look up for activities assigned to them and they may be hundreds of activities. Between i have created another activity type and use ACL custom fields to hide the fields for this role for new activities but now i'm looking for a way to hide the already entered activities from this role.
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T16:57:24.470Z
Answers.Text: I think this is new info "it means they have to look up for activities assigned to them". If you are wanting them to only see Activities that are assigned to them then that is super easy to do via Views, and you can either have a Tab on their Summary page, or a block on (or above) the Dashboard
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T18:15:04.257Z
Answers.Text: Thanks, i get your idea, let me try this on my dev site and get back with more info on this approach. thanks again, the only problem i foresee is that there are many custom fields in this activity type which may be quite difficult to have a nice display of the data in a table view.
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T22:30:18.783Z
Answers.Text: happy to fire you a View that does this if that helps save time. peter.davis@fuzion.co.nz
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T22:30:37.877Z
Answers.Text: as in it also has links to 'view/edit' built in
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-04T16:20:15.640Z
Answers.Text: Thanks a lot, i will be happy to have your View export file, but without the edit permissions for this role, only view rights. Many thanks
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-04T19:17:27.483Z
Answers.Text: I think it is this one: https://www.fuzion.co.nz/blogs/view-show-current-users-activities
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-06T10:27:04.130Z
Answers.Text: thanks, i will give you feedback soonest, i've been away and should be back tomorrow Friday. Thanks again for your time.
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-13T12:19:14.240Z
Answers.Text: Tried importing your view but since activity type and other fields are different the import failed. I'll have to create the view for this custom activity type. Thanks a lot for your time and initiative. Happy Christmas in advance!
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-13T23:07:39.523Z
Answers.Text: you should be able to set the import to "Bypass view validation" then fix things once you have the view in front of you
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-02T21:32:29.913Z
Answers.LastActivityDate: 2018-12-05T20:57:53.870Z
Answers.LastEditDate: 2018-12-05T20:57:53.870Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>There is an extension <a href="https://github.com/JMAConsulting/biz.jmaconsulting.activitytypeacl" rel="nofollow noreferrer">ACL for Activity Types</a> that provides ACL for activities based on activity type. This extension allows one to define permission for CRUD operations for each CMS role. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-02T10:47:37.247Z
Answers.Text: Thank you Pradeep, i know about this extension and as in my question, i have only one activity type which i need to exclude one role from not seeing activities of  other contacts. It also seems the extension is not compatible on CiviCRM 4.6.35
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-01T22:28:05.600Z
Answers.LastActivityDate: 2018-12-01T22:28:05.600Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I have a role to view contacts in a particular group granted through CiviCRM  view ACL permissions (<code>/civicrm/acl?reset=1</code>) but even though the role can see all contacts in that group, when trying to view an activity of a contact in that group, user gets an error message "you do not have permissions to access this page".<br>
  - CiviCRM: view all activities is enabled for this role<br>
  - CiviCRM: view all contacts  is disabled for this role<br>
  - CiviCRM: edit all contacts  is disabled for this role  </p>
  
  <p>I have one activity type which i want to exclude users with that role from seeing the same activities of other contacts in another group. </p>
  
  <p>any suggestion for a possible soultion will be much appreciated, I'm on CiviCRM 4.6.35, Drupal 7</p>
  
  <p>If i enable CiviCRM: view all contacts, the role will be able to view all activities of other groups as well.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-30T20:49:47.960Z
Comments.Text: There could be a CMS side solution if you are on Drupal, but it may seem an odd way to do it. happy to expand if you are on Drupal and are open to creative solution
Comments.UserDisplayName: petednz - fuzion
Tags: <activities><permissions><acl>
Title: CiviCRM view activities permissions
ThreadText: # CiviCRM view activities permissions
  
  (Asked by: username_0 on 2018-11-30)
  
  I have a role to view contacts in a particular group granted through CiviCRM view ACL permissions (`/civicrm/acl?reset=1`) but even though the role can see all contacts in that group, when trying to view an activity of a contact in that group, user gets an error message "you do not have permissions to access this page".  
  - CiviCRM: view all activities is enabled for this role  
  - CiviCRM: view all contacts is disabled for this role  
  - CiviCRM: edit all contacts is disabled for this role
  
  I have one activity type which i want to exclude users with that role from seeing the same activities of other contacts in another group.
  
  any suggestion for a possible soultion will be much appreciated, I'm on CiviCRM 4.6.35, Drupal 7
  
  If i enable CiviCRM: view all contacts, the role will be able to view all activities of other groups as well.
  
  **Tags:** activities, permissions, acl
  
  > **Comments:**
  > **username_1**: There could be a CMS side solution if you are on Drupal, but it may seem an odd way to do it. happy to expand if you are on Drupal and are open to creative solution  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-12-02. Score: 0
  
  If you give that role access to No Activities, and then build a Drupal View that has the required filters then those users would be able to 'see' the restricted Activities but no others.
  
  There is no reason you can't then deliver this view as a Tab for those folk to use (though i don't have the extension link to hand for that part of the suggestion)
  
  EDIT: I think this one will offer a good starting point: fuzion.co.nz/blogs/view-show-current-users-activities
  
  ps 4.6.35 is not secure
  
  > **Comments:**
  > **username_0**: Hi Pete, thanks, this might not work for me because the users will have a different  work flow. At the moment, users just go to their contact and see the activities assigned to them, if i follow this approach the workflow will be different which i think they will resist the change. I already have 4.6.38 on stage, just to put in production soonest.  
  > **username_1**: if the view is showing as another tab then i am not sure it changes their workflow much.  
  > **username_0**: it seems to be a big change because at the moment they just need to go to their own contact and see all assigned activities. If it a new tab it means they have to look up for activities assigned to them and they may be hundreds of activities. Between i have created another activity type and use ACL custom fields to hide the fields for this role for new activities but now i'm looking for a way to hide the already entered activities from this role.  
  > **username_1**: I think this is new info "it means they have to look up for activities assigned to them". If you are wanting them to only see Activities that are assigned to them then that is super easy to do via Views, and you can either have a Tab on their Summary page, or a block on (or above) the Dashboard  
  > **username_0**: Thanks, i get your idea, let me try this on my dev site and get back with more info on this approach. thanks again, the only problem i foresee is that there are many custom fields in this activity type which may be quite difficult to have a nice display of the data in a table view.  
  > **username_1**: happy to fire you a View that does this if that helps save time. peter.davis@fuzion.co.nz  
  > **username_1**: as in it also has links to 'view/edit' built in  
  > **username_0**: Thanks a lot, i will be happy to have your View export file, but without the edit permissions for this role, only view rights. Many thanks  
  > **username_1**: I think it is this one: https://www.fuzion.co.nz/blogs/view-show-current-users-activities  
  > **username_0**: thanks, i will give you feedback soonest, i've been away and should be back tomorrow Friday. Thanks again for your time.  
  > **username_0**: Tried importing your view but since activity type and other fields are different the import failed. I'll have to create the view for this custom activity type. Thanks a lot for your time and initiative. Happy Christmas in advance!  
  > **username_1**: you should be able to set the import to "Bypass view validation" then fix things once you have the view in front of you  
  
  ---
  
  ### Answer by username_2 on 2018-12-01. Score: 0
  
  There is an extension [ACL for Activity Types](https://github.com/JMAConsulting/biz.jmaconsulting.activitytypeacl) that provides ACL for activities based on activity type. This extension allows one to define permission for CRUD operations for each CMS role.
  
  > **Comments:**
  > **username_0**: Thank you Pradeep, i know about this extension and as in my question, i have only one activity type which i need to exclude one role from not seeing activities of  other contacts. It also seems the extension is not compatible on CiviCRM 4.6.35  
  
  ---
  
  