SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a custom list definition bound to a custom content type, I attached the out of the box AssignedTo field.

In the schema, I defined a view with this query :

        <FieldRef Name="Modified"
          <Membership Type="CurrentUserGroups">
            <FieldRef Name="AssignedTo"/>
            <FieldRef Name="AssignedTo" />
            <Value Type="Integer">
              <UserID />

The idea of this view is to display items either if the current user is specified in the AssignedTo field, or if the user is member of the group specified in the field.

This is working as expected. However, as soon as I change something in the view settings with the browser, the query is broken. It seems that the web UI does not know how to interpret my custom query, and override it when I save.

How can I avoid this settings page to break my query? is there a better way to display direct assignation or indirect assignation in the same view ?

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.