<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Permission Level...</title><link>https://www.infopathdev.com:443/forums/thread/71622.aspx</link><pubDate>Wed, 02 Nov 2011 09:28:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71622</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=71622</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;it´s a long time ago --- but in the meantime I have found a solution. You can´t achieve this by only using the &amp;#39;Graphical User Interface&amp;#39;. You can, however, achieve this by using code within a console application. The console application should take three arguments: the site collection URL, the name of the permission, and a description. These are the required variables for the permission code as shown in the following listing.&lt;/p&gt;&lt;font size="1" face="MonoRegular"&gt;&lt;font size="1" face="MonoRegular"&gt;&lt;p align="LEFT"&gt;&lt;font size="2" face="courier new,courier"&gt;string siteCollectionURL = args[0];&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;string nameOfPermissionLevel = args[1];&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
string description = args[2];&lt;/font&gt;&lt;/p&gt;&lt;font size="1" face="MonoRegular"&gt;&lt;font size="1" face="MonoRegular"&gt;&lt;p align="LEFT"&gt;&lt;font size="2" face="courier new,courier"&gt;using (SPSite oSiteCollection = new SPSite(siteCollectionURL))&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;using (SPWeb oWebsite = oSiteCollection.OpenWeb())&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;if (!oWebsite.HasUniqueRoleDefinitions)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;oWebsite.RoleDefinitions.BreakInheritance(true, true);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;SPRoleDefinition oRoleDefinition = new SPRoleDefinition();&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;oRoleDefinition.Name = nameOfPermissionLevel;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;oRoleDefinition.Description = description;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;oRoleDefinition.BasePermissions = SPBasePermissions.AddListItems &amp;amp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;SPBasePermissions.ViewFormPages &amp;amp; SPBasePermissions.UseClientIntegration;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;oWebsite.RoleDefinitions.Add(oRoleDefinition);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="courier new,courier"&gt;
&lt;/font&gt;&lt;font size="2" face="courier new,courier"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2" face="arial,helvetica,sans-serif"&gt;After you have compiled this you can create the new permission level with the following command:&lt;/font&gt;&lt;/p&gt;&lt;p align="LEFT"&gt;&lt;font size="2" face="courier new,courier"&gt;createpermissionlevel.exe &amp;#39;http://YourSiteCollection&amp;#39; &amp;#39;Submit Only&amp;#39; &amp;#39;Submit only permission level”&lt;/font&gt;&lt;/p&gt;&lt;p align="LEFT"&gt;&lt;font size="2" face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p align="LEFT"&gt;&lt;font size="2" face="arial,helvetica,sans-serif"&gt;Hope that helps anyone.&lt;/font&gt;&lt;/p&gt;&lt;p align="LEFT"&gt;&lt;font size="2" face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p align="LEFT"&gt;&lt;font size="2" face="arial,helvetica,sans-serif"&gt;Regards,&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Permission Level...</title><link>https://www.infopathdev.com:443/forums/thread/71277.aspx</link><pubDate>Thu, 20 Oct 2011 23:42:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71277</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=71277</wfw:commentRss><description>You could create a view and add some code to redirect the user if they try to navigate to it and make it the default view?  If not I would build a simple work flow that does what Hilary suggested to copy the file to a new library and then delete the form that was submitted.  Essentially a staging Form Library.  SharePoint Designer can easily do this.</description></item><item><title>Re: Permission Level...</title><link>https://www.infopathdev.com:443/forums/thread/71275.aspx</link><pubDate>Thu, 20 Oct 2011 22:51:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71275</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=71275</wfw:commentRss><description>&lt;p&gt;Wow, that&amp;#39;s a sticky one. Hopefully someone else has a better idea - but what about workflow? On submit, move the XML to a different library?&lt;/p&gt;</description></item><item><title>Permission Level...</title><link>https://www.infopathdev.com:443/forums/thread/71274.aspx</link><pubDate>Thu, 20 Oct 2011 22:47:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71274</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=71274</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;for some reasons I have the requirement that I have to allow users to fill out forms and submit this forms in a form library but they may NOT !!! see any other content in the library (not even their own submission). Now I have thought that I can add a new permission level in this site and choose only the &amp;#39;Add item&amp;#39; permission. But --- when creating a custom permission level from within SharePoint, selecting Add Items automatically selects View Items. Unchecking View Items unchecks the Add Items. So there seems to be no way to have only the Add Items permission without the View Items permission.&lt;/p&gt;&lt;p&gt;Does anyone know a way to allow users to submit to a form library --- but they may not allowed to see any other forms (not even their own).&lt;/p&gt;&lt;p&gt;Thank you very much for any help.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;</description></item></channel></rss>