<?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>How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx</link><description>Requirement: I have a list and have made settings wherein the user can edit only the items created by them and read others data. Now if a person leaves the company all the data created by he/she will become read only to others. There is no apparent OOB</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Pranab Paul's Blog - SharePoint 2007 (MOSS/WSS 3.0) Development Tips  : How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#7698142</link><pubDate>Thu, 14 Feb 2008 21:50:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7698142</guid><dc:creator>Pranab Paul's Blog - SharePoint 2007 (MOSS/WSS 3.0) Development Tips  : How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/pranab/archive/2007/07/04/how-to-set-item-level-permission-for-moss-wss-list-document-library-programmatically.aspx"&gt;http://blogs.msdn.com/pranab/archive/2007/07/04/how-to-set-item-level-permission-for-moss-wss-list-document-library-programmatically.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#7701700</link><pubDate>Fri, 15 Feb 2008 01:13:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7701700</guid><dc:creator>SHAREPOINTBlogs.com Mirror</dc:creator><description>&lt;p&gt;Requirement: I have a list and have made settings wherein the user can edit only the items created by&lt;/p&gt;
</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#8921969</link><pubDate>Wed, 03 Sep 2008 16:53:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8921969</guid><dc:creator>jeiku</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;how could I list all the users from the item-level permissions?&lt;/p&gt;
&lt;p&gt;I would want to loop through those users, and if i found &amp;quot;admin&amp;quot;, i would not break the inheritance for the listitem.&lt;/p&gt;
&lt;p&gt;do you know how to do this?&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;</description></item><item><title>Set Permission on Field Level </title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#8994009</link><pubDate>Fri, 10 Oct 2008 13:17:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8994009</guid><dc:creator>Milan Chauhan</dc:creator><description>&lt;p&gt;I want to set permission on Field Level.&lt;/p&gt;
&lt;p&gt;Scenario : I have two fields Title And Name. If it is contributor then he can see both fields. And if he is Approver then he can see both fields but Name Field should be Readonly. &lt;/p&gt;
&lt;p&gt;So i need to set permission at sharepoint List Field Level. &lt;/p&gt;
&lt;p&gt;Reply me ASAP.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Milan Chauhan&lt;/p&gt;
&lt;p&gt;milanchauhan@live.com&lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9044793</link><pubDate>Wed, 05 Nov 2008 20:41:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9044793</guid><dc:creator>Manju</dc:creator><description>&lt;p&gt;Is this possible to deny the site administrator access to an item by breaking the inheritance?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9136410</link><pubDate>Mon, 24 Nov 2008 12:04:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9136410</guid><dc:creator>Vikram</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Above code works fine with groups and without group also, but one problem i have noticed that even if the user is a part of some group after &amp;nbsp;performing &lt;/p&gt;
&lt;p&gt;item.RoleAssignments.Add(RoleAssignment) the user is also added on to site out of group.&lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9328071</link><pubDate>Fri, 16 Jan 2009 16:59:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9328071</guid><dc:creator>Cheeli.Satish</dc:creator><description>&lt;p&gt;using System;&lt;/p&gt;
&lt;p&gt;using System.Collections.Generic;&lt;/p&gt;
&lt;p&gt;using System.Text;&lt;/p&gt;
&lt;p&gt;using System.Configuration;&lt;/p&gt;
&lt;p&gt;using Microsoft.SharePoint;&lt;/p&gt;
&lt;p&gt;using Microsoft.SharePoint.Security;&lt;/p&gt;
&lt;p&gt;namespace BreakInheritance&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;class Program&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;static void Main(string[] args)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string strSiteURL = ConfigurationManager.AppSettings[&amp;quot;SiteName&amp;quot;];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPSite siteColl = new SPSite(strSiteURL);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPWeb site = siteColl.OpenWeb();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPDocumentLibrary docLib = (SPDocumentLibrary)site.Lists[ConfigurationManager.AppSettings[&amp;quot;ListName&amp;quot;]];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int count = docLib.Items.Count;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; count; i++)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPListItem item = docLib.Items[i];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(item.DisplayName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!item.HasUniqueRoleAssignments)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item.BreakRoleInheritance(true);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPGroupCollection spgroup = site.SiteGroups;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPGroup group = spgroup[&amp;quot;Performance Appraisal Visitors&amp;quot;];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPRoleAssignment roleAssignment = new SPRoleAssignment((SPPrincipal)group);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPRoleDefinition roleDefinition = site.RoleDefinitions[&amp;quot;Read&amp;quot;];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;roleAssignment.RoleDefinitionBindings.Add(roleDefinition);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item.RoleAssignments.Add(roleAssignment);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;site.AllowUnsafeUpdates = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;item.Update();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;site.AllowUnsafeUpdates = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(item.DisplayName + &amp;quot;'s Permissions are Broken&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(&amp;quot;Process Completed.Press Any Key&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.ReadLine();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9416648</link><pubDate>Fri, 13 Feb 2009 04:47:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9416648</guid><dc:creator>brad</dc:creator><description>&lt;p&gt;I just wandering is there any solution that needs not using code. &lt;/p&gt;
&lt;p&gt;Thanks. &lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9554026</link><pubDate>Fri, 17 Apr 2009 12:29:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9554026</guid><dc:creator>Labcleaner</dc:creator><description>&lt;p&gt;Great article, thank you.&lt;/p&gt;
&lt;p&gt;My question is how to manage permissions by using the Windows Sharepoint Webservices?&lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9608926</link><pubDate>Wed, 13 May 2009 10:11:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9608926</guid><dc:creator>Saurabh Jain</dc:creator><description>&lt;p&gt;it is fine. &amp;nbsp;but when we use it on multiple upload, it goes down....&lt;/p&gt;
&lt;p&gt; event handler does not work during upload multiple file.&lt;/p&gt;
&lt;p&gt;what is the solution .&lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9707770</link><pubDate>Mon, 08 Jun 2009 11:56:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9707770</guid><dc:creator>Muthu</dc:creator><description>&lt;p&gt;&amp;quot;I have a list and have made settings wherein the user can edit only the items created by them and read others data&amp;quot; &amp;nbsp;- i have same requirement, can you please post the code. Thanks.&lt;/p&gt;</description></item><item><title>re: How to set Item Level Permission for SharePoint 2007 (MOSS/WSS) List/Document Library Programmatically (Part 2)</title><link>http://blogs.msdn.com/pranab/archive/2008/02/14/how-to-set-item-level-permission-for-sharepoint-2007-moss-wss-list-document-library-programmatically-part-2.aspx#9905568</link><pubDate>Fri, 09 Oct 2009 21:37:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9905568</guid><dc:creator>axeion</dc:creator><description>&lt;p&gt;I am trying to embed .swf file into my webpage under one of the web parts. &lt;/p&gt;
&lt;p&gt;My site is saved under the folder pages in the document library, and I have set the permissions to public viewing for this site. I now have a new folder called venn that contains my .swf file. The properties of my subfolder venn are inherited from it's parent pages. so even my venn folder should be accessible publicly. But when I embed it into my html page and try to open my webpage, it asks for a login authentication, which is only set for private pages. How can change the permissions for the flash file. I was having the same issue previously with one more webpage inside a subfolder, but i corrected it by publishing the webpage, but how can i do the same for the flash file and the .js file.&lt;/p&gt;</description></item></channel></rss>