Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How to create a view based on the current user is in a Person or Group field , this Person or Group field can contain multiple user but not SharePoint Group ,I try to use the contains to filter the data but getting the following error:

enter image description here

Can someone shine some light on how to create a filter based on Person or Group? E.G. , I have a Person or Group field called StakeHolders(can contain more than one user) for the current project , How can create a view to filter the project based on the current login user.

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

To filter a person group column by the current logged in user, use column equals [me].

Edit to add: Using equals when a person/group column accepts multiple people still filters properly from my experience. If you are listed individually, you see the item. If you are one of 3 people listed, you see the item. The UI might be saying equals but my theory is the backend XSLT filter is operation like a in or contains for people/group columns.

share|improve this answer
    
Thanks very much. –  Ybbest Dec 5 '11 at 1:09
add comment

I don't think you can do this directly, though if it's simply based on who the current user us, Eric is right.

If you need to test for group membership, you may need to switch to a DVWP and/or edit the XSL directly. If it's less of a security thing and more for ease of use, you could group by whatever column you want to filter on.

Of course, setting the permissions for each group on each item will act as a filter as well.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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