<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programmatically retrieve the items in a list based on the current user</title><link>http://blogs.msdn.com/sowmyancs/archive/2008/10/02/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user.aspx</link><description>We can accomplish this requirement by using SPQuery. This sample code I have developed for taking all the items with modified by (column name is "Editor") user BLR3R7-19C\\test1. If you are using this code in a SharePoint web context then oWeb.CurerntUser</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>  Programmatically retrieve the items in a list based on the current user : EasyCoded</title><link>http://blogs.msdn.com/sowmyancs/archive/2008/10/02/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user.aspx#8972803</link><pubDate>Thu, 02 Oct 2008 07:05:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8972803</guid><dc:creator>  Programmatically retrieve the items in a list based on the current user : EasyCoded</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.easycoded.com/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user/"&gt;http://www.easycoded.com/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Programmatically retrieve the items in a list based on the current user</title><link>http://blogs.msdn.com/sowmyancs/archive/2008/10/02/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user.aspx#8972957</link><pubDate>Thu, 02 Oct 2008 09:11:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8972957</guid><dc:creator>Vin Diesel Pham</dc:creator><description>&lt;p&gt;Programmatically retrieve the items in a list based on the current user : EasyCoded &lt;/p&gt;
</description></item><item><title>re: Programmatically retrieve the items in a list based on the current user</title><link>http://blogs.msdn.com/sowmyancs/archive/2008/10/02/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user.aspx#8991926</link><pubDate>Wed, 08 Oct 2008 22:45:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8991926</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;Is there a way you can pull a list based on the users rights? &amp;nbsp;I dont want to pull the whole list and check each list item to see if the current user has rights. &amp;nbsp;Im hoping there is a way to pull the filtered list.&lt;/p&gt;
</description></item><item><title>re: Programmatically retrieve the items in a list based on the current user</title><link>http://blogs.msdn.com/sowmyancs/archive/2008/10/02/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user.aspx#8992343</link><pubDate>Thu, 09 Oct 2008 05:06:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8992343</guid><dc:creator>sowmyancs</dc:creator><description>&lt;p&gt;I am sorry Dave. Per my knowledge there is no a way to pull the lists based upon user rights. Let me know if you get any workaround.&lt;/p&gt;
</description></item><item><title>re: Programmatically retrieve the items in a list based on the current user</title><link>http://blogs.msdn.com/sowmyancs/archive/2008/10/02/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user.aspx#8992931</link><pubDate>Thu, 09 Oct 2008 18:22:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8992931</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;Ok I found a way to do it using impersonation. &amp;nbsp;Check out this article &lt;a rel="nofollow" target="_new" href="http://www.sharepointblogs.com/tanujashares/archive/2007/08/07/impersonation-in-sharepoint-2007.aspx"&gt;http://www.sharepointblogs.com/tanujashares/archive/2007/08/07/impersonation-in-sharepoint-2007.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Programmatically retrieve the items in a list based on the current user</title><link>http://blogs.msdn.com/sowmyancs/archive/2008/10/02/programmatically-retrieve-the-items-in-a-list-based-on-the-current-user.aspx#8993104</link><pubDate>Thu, 09 Oct 2008 21:07:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8993104</guid><dc:creator>sowmyancs</dc:creator><description>&lt;p&gt;Fantastic. Yes using that method we can retrieve the lists. Thanks Dave !&lt;/p&gt;
</description></item></channel></rss>