2

I am trying to create a Task List which would go on a user's My Site profile. This task list will have a column where the user can select Private vs Public.

If a task is Public, anyone viewing his profile would be able to see the task, however, if its private only the user should be able to view the task.

So after reading online I found that this can be achievable using Audiences...I've now created a task list and entered several sample tasks with both private and public status. Now on the actual profile I want to create two list views of this min Task List, one for the Public Audience and one for the Private Audience. That way the owner of the profile will be able to see both views and all other users will only be able to see the public view.

Where I am confused is creating the Audiences...how do I do this? How do I create an audience that will always refer to the current users (similar to using the [Me] keyword) or do I have to create a separate audience for each individual user?

Any ideas how I can achieve this would be awesome!!! And if there is a better way not using Audiences please let me know what you think!

Thank You!

2
  • Following this question because I would like to learn more about the application of 'audiencing' in SharePoint. Though could your particular requirement be met by list item-level permissions?
    – Beeblebrox
    Commented Aug 9, 2012 at 0:35
  • 1
    Yes, I ended up using list item leve permissions instead of audiencing. I'm not too sure how to use audiencing correctly as I have never before, and this was my first attempt haha
    – Tudor
    Commented Aug 10, 2012 at 20:23

1 Answer 1

1

Using Audiences would not give you the security that is otherwise enforced by the Permissions. Anyone knowing the item's address would be able still to access it. Audiences are mostly used in scenarios such as content targeting, but does not change permissions access based on these rules, e.g. it only hides/shows web parts or records, depending on which audiences you are part of.

What you would need to do is create a simple workflow via SP Designer 2010 using the "Wait for field change" activity and give/remove permissions to the other SharePoint Groups on that particular site, as soon as the value of the Flag-fields gets changed.

If you still want to deal with Audiences, you must know that these are changeable only via SP-CA and only if User Profile Service Application is configured properly and UPSA Syncronization is setup as well. These being in place, you could easily via the UP Service Application choose "Manage audiences", create your own, and compile them. There is also possible to use as Audience SharePoint Groups from your site collection.

9
  • Thanks! Are there any guides or articles on doing what you mention using the workflow that I can work through? I'm a bit confused as I haven't create workflows before. So when a the field would change from Public to Private a workflow would run and change the permissions for the SharePoint Groups? Basically this list will be on My Sites so I'm not sure how I can accomplish this...thanks for any help!
    – Tudor
    Commented Aug 9, 2012 at 15:22
  • there are 2 issues to consider: the actual workflow and replicating behaviour if you plan to implement this across all "My Sites" site collections for each user. Here sharepointusecases.com/index.php/2010/03/… and johnliu.net/blog/2010/7/13/… find 2 examples doing just that Commented Aug 9, 2012 at 19:19
  • Thanks Marius, I have read through those but there is one thing I am not understanding. So I have the currently logged in user who can see all of his tasks and the other users who can see just his public tasks. To actually get this working in the workflow, do I add a Replace permissions for the current user who can see both public/private and give him contribute permissions and for the other users I give them what permissions? Can I remove all permissions from them? Or how do I get it so they don't see the private tasks?
    – Tudor
    Commented Aug 9, 2012 at 21:22
  • I tried removing my own permissions to see if I could just not see any tasks but that doesn't seem to work. Do I need to create a specific group to contain all users and remove the permissions for them or can I use the groups already created (approvers, visitors, owners etc.)
    – Tudor
    Commented Aug 9, 2012 at 22:00
  • Could you actually check you Web Application User Policy Settings in the Central Admin whether anything such as All Authenticated Users (check for Full Read) or any general group at the Site Collection Visitors level has been added by any chance? This would override whatever settings you put at list level Commented Aug 9, 2012 at 22:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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