title: Sharepoint 2010 List View trouble: doesn't work CAML query for group selection
body: <p>I've created a "By my group" view in Schema.xml for a TaskList, using best known solution:</p>
  
  <pre><code>&lt;Query&gt;
    &lt;Where&gt;
       &lt;Or&gt;
        &lt;Membership Type="CurrentUserGroups"&gt;
          &lt;FieldRef Name="AssignedTo"/&gt;
        &lt;/Membership&gt;
        &lt;Eq&gt;
          &lt;FieldRef Name="AssignedTo"/&gt;
          &lt;Value Type="Integer"&gt;
            &lt;UserID/&gt;
          &lt;/Value&gt;
        &lt;/Eq&gt;
      &lt;/Or&gt;
    &lt;/Where&gt;
  &lt;/Query&gt;
  </code></pre>
  
  <p>However, It doesn't work for me...
  Possible reason: I'm using FBA authentication with tokens (I've noticed, that after login </p>
  
  <pre><code>SPFederationAuthenticationModule.SetPrincipalAndWriteSessionToken(securityToken);
  </code></pre>
  
  <p>User disappeared from SharePoint group).
  But!
  I checked next query:</p>
  
  <pre><code>string camlquery = 
  "&lt;Where&gt;
        &lt;Eq&gt;
            &lt;FieldRef Name=\"AssignedTo\" /&gt;
            &lt;Value Type=\"Text\"&gt;" + SPContext.Current.Web.CurrentUser.Groups[0].Name+ "&lt;/Value&gt;
        &lt;/Eq&gt;
  &lt;/Where&gt;";
  </code></pre>
  
  <p>And it worked!</p>
  
  <p>The problem is that i can't insert </p>
  
  <pre><code>SPContext.Current.Web.CurrentUser.Groups[0].Name
  </code></pre>
  
  <p>into the Schema.xml markup</p>
  
  <p>Any ideas about presenting TaskList View for corresponding UserGroup ?</p>