CAML query to filter list items on active directory group

Contributor

I have List library which having column Name-Vendor, also I have differ Active directory groups for each vendor.

I am using CAML query to filter List items, so user can see list items belong to its vendor group only.

I am filtering List items using CAML query  where value of currentuser group will be same as Value in Column of list items-Vendor

I am using following CAML query, is this correct, I am not getting expected filter result.

 

<And><Membership Type="CurrentUserGroups"><FieldRef Name="Vendor"/></Membership></And>

0 Replies