0

I have a Task list in Office 365 and I want to filter "All tasks" view with the following requirement: - Logged user must view only assigned tasks. - If logged user is in a special SharePoint group (for example "Project Managers") he must view all the tasks.

First point is easy to achieve, but I don't find how can I achieve second point.

Thanks in advance.

  • 1
    You can not do a Group Filter with View Settings, you have to set the Target Audience on another ListView webpart – Danny '365CSI' Engelman Oct 7 '15 at 9:52
0

If you want to use the same view for both purposes then you can add another user field (ProjectManagersGroup)to the list and set that field to the project managers group each time a task is created (can be done easily using SP Designer). Then you can change the view query to show tasks based on either user == assigned to OR users is a member of the ProjectManagers group.

<Membership  Type="CurrentUserGroups"><FieldRef Name="ProjectManagersGroup"/></Membership>
  • +1. Good solution. – Akhoy Oct 7 '15 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.