<?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: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/61077.aspx</link><pubDate>Thu, 04 Nov 2010 14:59:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61077</guid><dc:creator>tdheidt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61077.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=61077</wfw:commentRss><description>&lt;p&gt;Sorry I did not reply in a timely manner.&amp;nbsp; I was away for work and then at jury duty.&amp;nbsp; I am glad that you were able to modify it to fit your needs.&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/60382.aspx</link><pubDate>Fri, 15 Oct 2010 10:50:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60382</guid><dc:creator>Samuelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60382.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=60382</wfw:commentRss><description>&lt;p&gt;We have now been able to get the Roles to clear but not using the xDX expressions. The have the User and admin roles. So we really need one main condition. If the user is not an Admin switch the View to read only.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On Form Load:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- To clear the admin role on form load: 1. set field value for Admin role to : false()&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2. set the the action role found in the admin view in the roles list to &amp;quot;&amp;quot; - which means null.&lt;/p&gt;
&lt;p&gt;- Get Current user user the&amp;nbsp;webservice&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Get role form&amp;nbsp; Admin view:&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The actual admin role field we set to: &amp;nbsp;@ows_Group[@ows_UserID = CurrentUserID]&amp;nbsp;&amp;nbsp; - This is being obtained from the secondary data connection to the view for admins&lt;/p&gt;
&lt;p&gt;- SetBooleanRoleAdmin check box field.&amp;nbsp;&amp;nbsp; 1. set condition - If the admin field equals &amp;quot;Admins&amp;quot;, then apply rule Role-admin=true&lt;/p&gt;
&lt;p&gt;-Then switch view to read only when: ID=true() and Role-Admin field not equal to TRUE.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This has resolved our issue. But the solution on this website is the best idea out of the box that I have seen so far and the easiest to apply.&lt;/p&gt;
&lt;p&gt;Many Thanks for this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/60381.aspx</link><pubDate>Fri, 15 Oct 2010 10:49:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60381</guid><dc:creator>Samuelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=60381</wfw:commentRss><description>&lt;p&gt;We have now been able to get the Roles to clear but not using the xDX expressions. The have the User and admin roles. So we really need one main condition. If the user is not an Admin switch the View to read only.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On Form Load:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- To clear the admin role on form load: 1. set field value for Admin role to : false()&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2. set the the action role found in the admin view in the roles list to &amp;quot;&amp;quot; - which means null.&lt;/p&gt;
&lt;p&gt;- Get Current user user the&amp;nbsp;webservice&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Get role form LAR Admin view:&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The actual admin role field we set to: &amp;nbsp;@ows_Group[@ows_UserID = CurrentUserID]&amp;nbsp;&amp;nbsp; - This is being obtained from the secondary data connection to the view for admins&lt;/p&gt;
&lt;p&gt;- SetBooleanRoleAdmin check box field.&amp;nbsp;&amp;nbsp; 1. set condition - If the admin field equals &amp;quot;Admins&amp;quot;, then apply rule Role-admin=true&lt;/p&gt;
&lt;p&gt;-Then switch view to read only when: ID=true() and Role-Admin field not equal to TRUE.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This has resolved our issue. But the solution on this website is the best idea out of the box that I have seen so far and the easiest to apply.&lt;/p&gt;
&lt;p&gt;Many Thanks for this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/60326.aspx</link><pubDate>Thu, 14 Oct 2010 10:58:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60326</guid><dc:creator>Samuelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=60326</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;OK, I think I have resolved the issue with the Roles list. Although the List Item ID variable has the correct List GUID, the actual workflow schedule did not, so I have now corrected the workflow schedule list GUID.&lt;/p&gt;&lt;p&gt;However, we still have an issue trying to clear roles. The roles are just not clearing, even though we have set them using your method. Could you please advise on Clearing Roles on form open.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Also,&amp;nbsp; to deal with the actual item level permissions on the List we will get Nintex workflow to set item level permissions on the List items after submission, as the contribute permission is defintely an issue for List security, considering the fact that users need the contribute permission to submit items.&lt;/p&gt;&lt;p&gt;&amp;nbsp;So, please comment on the role clearing again as we can&amp;#39;t clear them on form open. We have put in the rule but no joy. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/60324.aspx</link><pubDate>Thu, 14 Oct 2010 08:46:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60324</guid><dc:creator>Samuelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=60324</wfw:commentRss><description>&lt;p&gt;I have come in today and the Roles list has automatically cleared itself again. I have just checked the GUID i put into the ListItem variable and its still there, so I really don&amp;#39;t know why the roles are disappearing. I think if the Roles hardly change for the Admins then I think the workflow should not be set to run automatically if this issue can&amp;#39;t be resolved. The workflow should be run manually when the there is a new admin or an admin has left.&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/60236.aspx</link><pubDate>Tue, 12 Oct 2010 15:04:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60236</guid><dc:creator>Samuelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=60236</wfw:commentRss><description>&lt;p&gt;Yes it does. However the two role fields below it just say &amp;#39;false&amp;#39;, so it seems that the xDX string is not doing the enumeration.&amp;nbsp; By the way, I am in both Role groups.&lt;/p&gt;
&lt;p&gt;The actual data connections to the roles list are fine as we can run the paths in a browser and obtain the XML code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The boolean fields are not bringing back the Roles for this use. &lt;/p&gt;
&lt;p&gt;The fields look like this:&lt;/p&gt;
&lt;p&gt;EUNET\OPARASA1&lt;/p&gt;
&lt;p&gt;false&lt;/p&gt;
&lt;p&gt;false&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, the Roles list keeps clearing out everyday. On going into the workflow start data,&amp;nbsp;&amp;nbsp;in the ListID variable,&amp;nbsp;the List GUID for the form library keeps changing to the Roles GUID. I keep having to put this in. How can I hard code to stop this from happening, as I am &lt;/p&gt;
&lt;p&gt;following the instructions. When i start it manually the roles come back but when the workflow runs automatically users the default list IT and obviously clears all the Roles.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/60225.aspx</link><pubDate>Tue, 12 Oct 2010 13:10:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60225</guid><dc:creator>tdheidt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=60225</wfw:commentRss><description>&lt;p&gt;If you put the CurrentUserID field on the form to check the ID of the current user, does it match any user listed in the Roles list?&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/60220.aspx</link><pubDate>Tue, 12 Oct 2010 13:00:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60220</guid><dc:creator>Samuelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60220.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=60220</wfw:commentRss><description>&lt;p&gt;I have gone through the whole process and the roles list is coming up with the Users and there groups as expected. However, I am ot getting the roles coming through to the&amp;nbsp;Hidden boolean fields&amp;nbsp;even though the data connections and xpath expressions look correct.&lt;/p&gt;
&lt;p&gt;The hidden boolean fields just say &amp;#39;false&amp;#39; .in both boxes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Xpath expressions are: &lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Role-LARAdmin&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()/my:myFields/my:HiddendatasourceFields/my:CurrentUserID] = &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Role-LARUser&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()/my:myFields/my:HiddendatasourceFields/my:CurrentUserID] = &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Role-LARUser&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()/my:myFields/my:HiddendatasourceFields/my:CurrentUserID] != &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Role-LARAdmin&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()/my:myFields/my:HiddendatasourceFields/my:CurrentUserID] != &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any ideas please.....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/56561.aspx</link><pubDate>Tue, 06 Jul 2010 15:29:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56561</guid><dc:creator>aliash</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=56561</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks so much for your detailed post.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I found this link and hope it may be useful to others :&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://blog.ianchivers.com/wordpress/?p=37"&gt;http://blog.ianchivers.com/wordpress/?p=37&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Details here :&lt;/p&gt;&lt;b&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:#30332d;FONT-FAMILY:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ansi-language:EN-US;"&gt;Custom SharePoint User WebService V1.0 - (useful to switch views depending on the current user&amp;#39;s SharePoint groups in Infopath)&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:#30332d;FONT-FAMILY:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ansi-language:EN-US;"&gt;&lt;br /&gt;Actually the WebService has only one method: GetUserGroupsFromCurrentUser(). This method simply returns the current user&amp;#39;s SharePoint Groups.&lt;br /&gt;But there&amp;#39;s a build-in SharePoint WebService which does the same?! Yes, that&amp;#39;s right! But the built-in service doesn&amp;#39;t work with &lt;b&gt;Infopath 2007&lt;/b&gt;!&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:#30332d;FONT-FAMILY:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;a href="http://ilovesharepoint.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=15260"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font color="#800080"&gt;http://ilovesharepoint.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=15260&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:#30332d;FONT-FAMILY:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ansi-language:EN-US;"&gt;&lt;br /&gt;Read more: &lt;/span&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:#30332d;FONT-FAMILY:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;a href="http://ilovesharepoint.codeplex.com/wikipage?title=http%3a%2f%2fcglessner.blogspot.com%2f2008%2f07%2finfopath-switch-view-depending-on.html&amp;amp;referringTitle=Home"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font color="#800080"&gt;http://cglessner.blogspot.com/2008/07/infopath-switch-view-depending-on.html&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/56098.aspx</link><pubDate>Tue, 22 Jun 2010 12:39:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56098</guid><dc:creator>tdheidt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=56098</wfw:commentRss><description>&lt;p&gt;I did come up with a solution.&amp;nbsp; It is a bit involved, but here are the steps I took:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Just as a side note, we use Nintex Workflow.&lt;/p&gt;
&lt;div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;
&lt;div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;Provides a method for securing different parts of a browser based&amp;nbsp;InfoPath form based on the current logged on users security rights.&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;strong&gt;&lt;font size="2"&gt;Description:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;The process will read the permissions from the specified list/library and populate a &amp;quot;Roles&amp;quot; list with each user that has permissions to the list.&amp;nbsp; The workflow will drill down into each group listed and extract the users of these groups.&amp;nbsp; The groups will be used as the user&amp;#39;s role in Infopath.&amp;nbsp; Any individually listed users in the permissions will not have a assigned group and as such cannot have any role verified to them.&amp;nbsp; It is then recommended to put all users into a group for the permissions for the desired list/library.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;The extracted roles can then be retrieved in InfoPath for use in hidding sections, buttons, etc.. based on if the current logged on user is a member of the specified role.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;strong&gt;&lt;font size="2"&gt;Installation:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;Before the application of the following steps, the InfoPath form library that you wish to use this on should be created and published to the SharePoint environment.&amp;nbsp; It&amp;#39;s properites will be needed for configuration of the workflow.&amp;nbsp; The &amp;quot;Roles&amp;quot; list should be created on the same site as the list you wish to read permissions from.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Create the Roles List:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Create a custom list named &amp;quot;Roles&amp;quot; on the site you wish to apply InfoPath role based security too.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Select No to &amp;quot;Display this list in the Quick Launch?&amp;quot; &lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Create two additional fields, &amp;quot;UserID&amp;quot; &amp;amp; &amp;quot;Group&amp;quot;.&amp;nbsp; Both of which are single line of text.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Add a new record to the list.&amp;nbsp; Enter &amp;quot;Control&amp;quot; for each field.&amp;nbsp; Your list view should look like the following image (without the names...those come later)&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;strong&gt;NOTE:&amp;nbsp; &lt;/strong&gt;The Roles list is now created.&amp;nbsp; The first record is a control record.&amp;nbsp; This is required and must NEVER be removed from the list.&amp;nbsp; If it is, the list must be deleted and these steps repeated.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;img alt="" src="http://one.akzonobel.intra/bu/113/src/WikiImages/Temp.png" /&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Apply the Workflow:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Save the &amp;quot;GetRoles.nwf&amp;quot; file (Attached to this post) to your desktop and unzip.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; From the &amp;quot;Roles&amp;quot; list, click on the &amp;quot;Settings&amp;quot; drop down and select &amp;quot;Create Workflow&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; When the &amp;quot;Select a Workflow Template&amp;quot; screen appears click the &amp;quot;Cancel&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Click on the &amp;quot;Actions&amp;quot; drop down and select &amp;quot;Import&amp;quot; -&amp;gt; &amp;quot;From File&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; Click the &amp;quot;Browse&amp;quot; button and navigate to where you saved the &amp;quot;GetRoles.nwf&amp;quot; file and click the &amp;quot;Open&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;6)&amp;nbsp; Click on the &amp;quot;Import&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;7)&amp;nbsp; For both of the Web Service actions in the workflow, please use your admin login credentials.&amp;nbsp; &lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;strong&gt;NOTE: &lt;/strong&gt;I am not sure if any other paths need to be changed as I have not ported to different servers.&amp;nbsp; You may have to do some changing of options.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;8)&amp;nbsp; Please read the below &amp;quot;Configuration of Workflow&amp;quot; section.&amp;nbsp; When you are done configuring the workflow then click the &amp;quot;Actions&amp;quot; drop down and select &amp;quot;Publish&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;u&gt;Configuration of Workflow:&lt;/u&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;There are several options that can/need to be configured for this workflow.&lt;/font&gt;&lt;/div&gt;
&lt;blockquote class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align="left"&gt;&lt;strong&gt;&lt;font size="1"&gt;Optional, but Recommended-ID of Infopath Form Library:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;font size="2"&gt;The default library ID for where the workflow is read the permissions information must be supplied.&amp;nbsp; There is an opportunity to change this value when you start the workflow (see below), but it is recommended that you enter the value now so that it is saved as the default in the case that you ever have to stop and restart the workflow.&amp;nbsp; Otherwise, if you restart the workflow it will try to acccess this default list ID if you forget to change it.&lt;/font&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div align="left"&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;strong&gt;&lt;font size="2"&gt;Description:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;font size="2"&gt;Each list/library has a unique identifier in the SharePoint environment.&amp;nbsp; The following is a set of instructions on how to retrieve this ID for use in scripts, workflows and web services.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;font size="2"&gt;&lt;strong&gt;Instructions:&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Go to the list/library you wish to retrieve the ID for.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Click on the &amp;quot;Settings&amp;quot; drop down and select &amp;quot;List (Library) Settings&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;font size="2"&gt;3)&amp;nbsp; In the URL at the top of the screen, note the fragment that starts &amp;quot;?List=&amp;quot;.&amp;nbsp; The List ID is located after this (as seen in the highlighted section below).&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;img alt="List/Library ID" src="http://one.akzonobel.intra/bu/113/src/WikiImages/ListID.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClassE4116B43C38A4A93B1C0CC8EAC07F557" align="left"&gt;&lt;font size="2"&gt;&lt;strong&gt;Note:&amp;nbsp; &lt;/strong&gt;The ID is in URL Encoded format.&amp;nbsp; To decode the ID you can manually replace the characters identified with the &amp;quot;%&amp;quot; sign using the&amp;nbsp;&amp;quot;URL Encoding Table&amp;quot;&amp;nbsp;link above&amp;nbsp;or copy the sting into the Decode section using the &amp;quot;URL Encode/Decode&amp;quot; link above.&amp;nbsp; For example, the &amp;quot;%7B&amp;quot; represents the &amp;quot;{&amp;quot; character, &amp;quot;%2D&amp;quot; represents the &amp;quot;-&amp;quot; character and &amp;quot;%7D&amp;quot; represents &amp;quot;}&amp;quot; in the image above.&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div align="left"&gt;&lt;font size="2"&gt;1)&amp;nbsp;&amp;nbsp;Click the &amp;quot;Settings&amp;quot; drop down and select &amp;quot;Start Data&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;2)&amp;nbsp; Click on the &amp;quot;ListID&amp;quot; variable.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;img alt="Nintex Start Data" src="http://one.akzonobel.intra/bu/113/src/WikiImages/NintexStartData-Roles.jpg" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;3)&amp;nbsp; Enter your list/library ID into the &amp;quot;Default value&amp;quot; field and click the &amp;quot;Add&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;img alt="Nintex ListID" src="http://one.akzonobel.intra/bu/113/src/WikiImages/NintexListID-Roles.jpg" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;font size="1"&gt;Optional-Workflow Name:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;The workflow name can be modified to reflect the current type of Roles list that is being executed.&amp;nbsp; This will allow for muliple instances and configurations of the workflow to run on the same site.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;1)&amp;nbsp; Click the &amp;quot;Settings&amp;quot; drop down and select &amp;quot;Title and Description&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;2)&amp;nbsp; In the default name, the &amp;quot;- Projects&amp;quot; was used to specify the library to which this workflow was reading the permissions list.&amp;nbsp; This (and the description) may be changed to whatever is desired.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click the &amp;quot;Save&amp;quot; button.&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Configure&amp;nbsp;the Execution Time:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Go back to the main page for the &amp;quot;Roles&amp;quot; list.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Click the drop down next to the &amp;quot;Control&amp;quot; text in the &amp;quot;Name&amp;quot; column and select &amp;quot;Schedule Workflows&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click on the &amp;quot;Add Schedule&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; This is the screen where you will configure how often to run the GetRoles workflow and refresh the data.&amp;nbsp; It is recommended that the default be set to repeat dailey in case any changes to the security permissions have been changed (highlighted below).&amp;nbsp; Also, make sure to select that the schedule runs &amp;quot;Indefinite&amp;quot;.&amp;nbsp; This is important or your updates will end unexpectedly.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;img alt="Schedule Properties" src="http://one.akzonobel.intra/bu/113/src/WikiImages/Roles-Schedule.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; At this point you have the opportunity to change the default &amp;quot;ListID&amp;quot; if desired.&amp;nbsp; Please see the description in the &amp;quot;&lt;strong&gt;Optional, but Recommended-ID of Infopath Form Library:&amp;quot; &lt;/strong&gt;section about stopping and restarting the workflow.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;6)&amp;nbsp; Click the &amp;quot;Save&amp;quot; button&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp; Your workflow will now start on the &amp;quot;Control&amp;quot; record on the specified date and time and will continue to update according to the parameters entered on the screen shot above.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Creation of Views:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;A view for each role, that needs to be checked,&amp;nbsp;needs to be created for InfoPath to read from.&amp;nbsp; This is due to the fact that a user may be a member of several groups.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; In the upper right corner of the &amp;quot;Roles&amp;quot; list, click the drop down arrow next to the &amp;quot;All Items&amp;quot; view and click &amp;quot;Create View&amp;quot;.&amp;nbsp; &lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Change the Filter criteria for the view based on the desired role.&amp;nbsp; The filter value must match exactly the SharePoint group name that was setup for use in the permissions.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;img alt="Filter Condition" src="http://one.akzonobel.intra/bu/113/src/WikiImages/ViewFilter-Roles.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click the &amp;quot;OK&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Make sure the new view displays expected results&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; Repeat the above steps for each group that will need to be checked in the InfoPath form.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;List Security:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;Security on the &amp;quot;Roles&amp;quot; list should be set up to allow only an administrator to start/stop the workflow and read only access for everyone else.&amp;nbsp; Read access is required so that the InfoPath form can access the data for the current logged on user whom it is trying to retrieve roles for.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; From the main screen of the &amp;quot;Roles&amp;quot; list, click the &amp;quot;Settings&amp;quot; drop down and select the &amp;quot;List Settings&amp;quot; option.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Click on the option under the &amp;quot;Permissions and Management&amp;quot; column for &amp;quot;&amp;quot;Permissions for this list&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; By default the list inherits permissions from the main page of the site.&amp;nbsp; Click the &amp;quot;Actions&amp;quot; drop down and select &amp;quot;Edit Permissions&amp;quot;.&amp;nbsp; This will break permisions for this list.&amp;nbsp; When the warning box appears, click &amp;quot;OK&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Remove all permission except whomever is the Administrator (It is recommended this is either the Site Collection Administrator or Content Owner Administrator) and &amp;quot;NT AUTHORITY\authenticated users&amp;quot;.&amp;nbsp; The Admin group can be given &amp;quot;Full&amp;quot; or &amp;quot;Contribute&amp;quot; permissions.&amp;nbsp; &amp;quot;NT AUTHORITY\authenticated users&amp;quot; should be given &amp;quot;Read&amp;quot; permissions.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;img alt="List Permissions" src="http://one.akzonobel.intra/bu/113/src/WikiImages/Permissions-Roles.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;strong&gt;&lt;font size="2"&gt;Use in InfoPath:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;The following is a list of instructions on how to implement the &amp;quot;Roles&amp;quot; list in InfoPath:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Hidden Fields:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;Some fields need to be set up in InfoPath to receive our Role data.&amp;nbsp; Our &amp;quot;Hidden Fields&amp;quot; are those elements that are in the forms data source, but not displayed on the form itself.&amp;nbsp; they are inserted in a group for organizational purposes.&amp;nbsp; For the purpose of this example, my data source fields are set up as the following:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;img alt="InfoPath Fields" src="http://one.akzonobel.intra/bu/113/src/WikiImages/InfoPathFields-Roles.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;The &amp;quot;Role-&amp;quot; fields are &amp;quot;True/False (Boolean)&amp;quot; fields with a default value of &amp;quot;FALSE&amp;quot;.&amp;nbsp; These fields represent each role that a user can have (that we are checking for).&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;The &amp;quot;CurrentUser&amp;quot; field is &amp;quot;Text&amp;quot; field with no default value.&amp;nbsp; This will store the information (ID) of the current logged on user.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Data Connections:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/u&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;strong&gt;&lt;font size="1"&gt;Roles:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;blockquote class="ExternalClass91FD7EFFCA0B4A6DBC3780FA0DE4070A" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;A secondary data connection will need to be set up for each role.&amp;nbsp; &lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;
&lt;div&gt;&lt;strong&gt;&lt;font size="2"&gt;Description:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;Creating a secondary data connection to a view allows for the filtering of the data returned to InfoPath.&amp;nbsp; This is most useful in list/libraries that contain large amounts of data so that only a sub set of the data is actually retrieved and sent to InfoPath.&amp;nbsp; This also allows InfoPath to take advantage of SharePoints sorting and filtering features.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;Instructions:&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;The instructions start from having the InfoPath form that you wish to create the data connection in open and&amp;nbsp;in design mode.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Clicking on &amp;quot;Tools&amp;quot; in the menu bar and selection &amp;quot;Data Connections...&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Click on the &amp;quot;Add&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click on the option for &amp;quot;Create a new connection to&amp;quot; and select &amp;quot;Receive data&amp;quot;.&amp;nbsp; Click the &amp;quot;Next&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Select the option for &amp;quot;XML document&amp;quot; and click &amp;quot;Next&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; In the text box a string of the following structure should be entered:&lt;/font&gt;&lt;/div&gt;
&lt;blockquote class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div&gt;&lt;font size="2"&gt;http://&amp;lt; your site&amp;gt;/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List=&amp;lt;Roles List ID&amp;gt;&amp;amp;View=&amp;lt;View ID of Role&amp;gt;&amp;amp;XMLDATA=TRUE&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;Example:&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;&lt;a href="http://www.mysite.com/0A/01G/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List={5DF7676A-257B-485C-8CFF-01BC1D22E878}&amp;amp;View={6B06FEE6-E8CD-42DC-BD93-916DCC3ABE62}&amp;amp;XMLDATA=TRUE"&gt;http://www.mysite.com/0A/01G/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List={5DF7676A-257B-485C-8CFF-01BC1D22E878}&amp;amp;View={6B06FEE6-E8CD-42DC-BD93-916DCC3ABE62}&amp;amp;XMLDATA=TRUE&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you do not know how to get the List ID, &lt;a href="http://one.akzonobel.intra/bu/113/src/Wiki%20Pages/Find%20List-Library%20ID.aspx"&gt;&lt;font color="#3966bf"&gt;click here&lt;/font&gt;&lt;/a&gt;.&amp;nbsp; Instructions for finding the view ID can be found by &lt;font color="#ff0000"&gt;&lt;a href="http://one.akzonobel.intra/bu/113/src/Wiki%20Pages/Find%20View%20ID.aspx"&gt;&lt;font color="#3966bf"&gt;clicking here&lt;/font&gt;&lt;/a&gt;.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;6)&amp;nbsp; Click &amp;quot;Next&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;7)&amp;nbsp; Select the option to &amp;quot;Access the data from the specified location&amp;quot; and click &amp;quot;Next&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;strong&gt;Note:&amp;nbsp; &lt;/strong&gt;Do not check the option for &amp;quot;Store a copy of the data for offline use&amp;quot;.&amp;nbsp; This will cache your data and make the security that you are applying inaccurate.&lt;/font&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;8)&amp;nbsp; Enter a name for your data connection.&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp; When entering&amp;nbsp;a name for your data connection, I recommend something similar to:&lt;/font&gt;&lt;/div&gt;
&lt;blockquote class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div align="left"&gt;&lt;font color="#000000" size="2"&gt;Role-&amp;lt;Group Name&amp;gt;&lt;/font&gt;&lt;/div&gt;
&lt;div align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align="left"&gt;&lt;font size="2"&gt;Example:&lt;/font&gt;&lt;/div&gt;
&lt;div align="left"&gt;Role-01G_GlobalMaint&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font size="2"&gt;This will provide a descriptive name that is easy to decipher if changes need to be made later.&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;9)&amp;nbsp; Check mark the box for &amp;quot;Automatically retreive data when form is opened&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;10)&amp;nbsp;Click the &amp;quot;Finish&amp;quot; button.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp; &lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font color="#000000" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font color="#000000" size="2"&gt;Repeat this process for each view that was created for each role&amp;nbsp; (See &amp;quot;Creation of Views:&amp;quot; section).&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;strong&gt;&lt;font size="1"&gt;Current User:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;Instructions to create a data connection to get the current users information can be found here:&lt;/font&gt;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;
&lt;h2 class="ms-pagetitle" align="left"&gt;&lt;font size="2"&gt;&lt;strong&gt;InfoPath-GetCurrentUserbyName &lt;/strong&gt;&lt;/font&gt;&lt;/h2&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;Instructions on how to have a secondary data connection to get a users information from Active Directory. &lt;/div&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;&lt;strong&gt;&lt;font size="2"&gt;Description:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;Creating a secondary data connection to a view allows for the filtering of the data returned to InfoPath.&amp;nbsp; This is most useful in list/libraries that contain large amounts of data so that only a sub set of the data is actually retrieved and sent to InfoPath.&amp;nbsp; This also allows InfoPath to take advantage of SharePoints sorting and filtering features.&lt;/div&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;&lt;font size="2"&gt;&lt;strong&gt;Instructions:&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;&lt;font size="2"&gt;&lt;u&gt;Setup Connection:&lt;/u&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClassBFBF4C05865D41E3843F35B38036D206"&gt;&lt;font size="2"&gt;The instructions start from having the InfoPath form that you wish to create the data connection in open and&amp;nbsp;in design mode.&lt;/font&gt;&lt;/div&gt;
&lt;blockquote class="ExternalClassBFBF4C05865D41E3843F35B38036D206" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Clicking on &amp;quot;Tools&amp;quot; in the menu bar and selection &amp;quot;Data Connections...&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Click on the &amp;quot;Add&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click on the option for &amp;quot;Create a new connection to&amp;quot; and select &amp;quot;Receive data&amp;quot;.&amp;nbsp; Click the &amp;quot;Next&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Select the option for &amp;quot;Web Service&amp;quot; and click &amp;quot;Next&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; In the text box a string of the following structure should be entered:&lt;/font&gt;&lt;/div&gt;
&lt;blockquote class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div&gt;&lt;font size="2"&gt;http://&amp;lt; your site collection&amp;gt;/_vti_bin/userprofileservice.asmx?wsdl&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font size="2"&gt;Example:&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#3966bf" size="2"&gt;&lt;a href="http://www.mysite.com/_vti_bin/userprofileservice.asmx?wsdl"&gt;&lt;u&gt;http://www.mysite.com/_vti_bin/userprofileservice.asmx?wsdl&lt;/u&gt;&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;6)&amp;nbsp; Click &amp;quot;Next&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;7)&amp;nbsp; Select the option to &amp;quot;GetUserProfileByName&amp;quot; and click &amp;quot;Next&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;8)&amp;nbsp; Leave the defaults for the parameter page and click &amp;quot;Next&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;9)&amp;nbsp; Do &lt;strong&gt;not&lt;/strong&gt; check the option to &amp;quot;Store a copy of the data in the form template&amp;quot; as this can pull inaccurate user data depending on the connectivity status of the form.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font color="#000000" size="2"&gt;10)&amp;nbsp;Enter a name for your data connection.&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;11)&amp;nbsp;Check mark the box for &amp;quot;Automatically retreive data when form is opened&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;12)&amp;nbsp;Click the &amp;quot;Finish&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;u&gt;&lt;font size="2"&gt;Retrieve User Information:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;In order to get information from the secondary data connection that retrieves the users Active Directory information perform the following steps:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;1)&amp;nbsp; In the &amp;quot;Data Source&amp;quot; section of the InfoPath form, create a text element to store the data that we are to retrieve.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Double-Click the field to go to it&amp;#39;s properties.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;3)&amp;nbsp; In the &amp;quot;Default Value&amp;quot; section click the formula (&amp;quot;Fx&amp;quot;) button next to the &amp;quot;Value&amp;quot; text box.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Click on the &amp;quot;Insert a Field or Group...&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;5)&amp;nbsp; Click the drop down the &amp;quot;Data Source&amp;quot; box and select your &amp;quot;GetUserProfileByName&amp;quot; data connection.&amp;nbsp; (In this example, mine is named &amp;quot;GetUserProfileByName-Requestor&amp;quot;).&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;img alt="Value" src="http://one.akzonobel.intra/bu/113/src/WikiImages/GetUserProfileByName-Value.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;6)&amp;nbsp; Navigate down the &amp;quot;dataFields&amp;quot; branch and select the &amp;quot;Value&amp;quot; field as shown in the picture above.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;7)&amp;nbsp; Click on the &amp;quot;Filter Data...&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;8)&amp;nbsp; Click on the &amp;quot;Add&amp;quot; button to add a filter to retrieve the data specific to your needs.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;9)&amp;nbsp; In the first drop down box, select the &amp;quot;Name&amp;quot; field.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;10) Leave the second box set to &amp;quot;is equal to&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;11) Drop down the third box and select &amp;quot;type text...&amp;quot;.&amp;nbsp; This will allow you to enter the name of the Active Directory field you wish to retrieve for this selected user.&amp;nbsp; So for example:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;img alt="Filter" src="http://one.akzonobel.intra/bu/113/src/WikiImages/GetUserProfileByName-Filter.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;will retreive the current users ID (domain\userID).&amp;nbsp; See the &amp;quot;Filter Options&amp;quot; section below for a list of standard Active Directory fields that can be filtered on.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;12)&amp;nbsp;Continue to click &amp;quot;OK&amp;quot; until you get back to the form.&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;&lt;u&gt;Modify to Retreive a Specified User:&lt;/u&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;Active Directory information may be retreived for users other than the current logged on user.&amp;nbsp; To do this:&lt;/font&gt;&lt;/div&gt;
&lt;blockquote class="ExternalClassBFBF4C05865D41E3843F35B38036D206" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Open the form, in design mode.&amp;nbsp; A separate instance of the GetUserProfileByName is recommended for this functionality.&amp;nbsp; See the above steps from the &amp;quot;Instructions&amp;quot; section.&amp;nbsp; However, in step #11 do &lt;strong&gt;not &lt;/strong&gt;check the option to &amp;quot;Automatically retreive data when form is opened&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Choose the field or button you wish to trigger this action and go to it&amp;#39;s properties.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click on &amp;quot;Rules&amp;quot;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Click on the &amp;quot;Add&amp;quot; button to add a rule entry.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;5)&amp;nbsp; Give your rule a descriptive name and/or a conditional statement if one applies.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;6)&amp;nbsp; Click on the &amp;quot;Add Action&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;7)&amp;nbsp; For the &amp;quot;Action&amp;quot; select &amp;quot;Set a field&amp;#39;s value&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;8)&amp;nbsp; For the &amp;quot;Field&amp;quot; click the select button next to the text box.&amp;nbsp; Drop down the &amp;quot;Data Source&amp;quot; box and select your &amp;quot;GetUserProfileByName&amp;quot; data connection.&amp;nbsp; (In this example, mine is named &amp;quot;GetUserProfileByName-Requestor&amp;quot;).&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;9)&amp;nbsp; Navigate down the &amp;quot;queryFields&amp;quot; branch until you get to &amp;quot;AccountName&amp;quot;.&amp;nbsp; Click on it and then click &amp;quot;OK&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;img alt="Options" src="http://one.akzonobel.intra/bu/113/src/WikiImages/GetUserProfileByName-Option.jpg" /&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;10) In the &amp;quot;Value&amp;quot; box, insert a field or value that is of the format domain/userID.&amp;nbsp; This can be retrieved a number of ways, including lookup to a SharePoint list.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;11) Click &amp;quot;OK&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;12) Click on the &amp;quot;Add Action&amp;quot; button to add another action to this Rule.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;13) In &amp;quot;Action&amp;quot;, select &amp;quot;Query using a data connection&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;14) For the &amp;quot;Data Connection&amp;quot; field, choose your data connection that was selected in step #8 (mine was &amp;quot;GetUserProfileByName-Requestor&amp;quot;).&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;15) Continue to click the &amp;quot;OK&amp;quot; buttons until you arrive back at the form.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;Whenever an action is taken on your field/button that the rule was applied to, the data connection will go out and retreive Active Directory information on the user supplied.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;strong&gt;&lt;font size="2"&gt;Filter Options:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;Below are a list of standard Active Directory fields that can be accessed using the filter method above:&lt;/font&gt;&lt;/div&gt;
&lt;p class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" dir="ltr" align="left"&gt;UserProfile_GUID&lt;br /&gt;AccountName&lt;br /&gt;FirstName&lt;br /&gt;LastName&lt;br /&gt;PreferredName&lt;br /&gt;WorkPhone&lt;br /&gt;Office&lt;br /&gt;Department&lt;br /&gt;Title&lt;br /&gt;Manager&lt;br /&gt;AboutMe&lt;br /&gt;PersonalSpace&lt;br /&gt;PictureURL&lt;br /&gt;UserName&lt;br /&gt;QuickLinks&lt;br /&gt;WebSite&lt;br /&gt;PublicSiteRedirect&lt;br /&gt;SPS-Dotted-line&lt;br /&gt;SPS-Peers&lt;br /&gt;SPS-Responsibility&lt;br /&gt;SPS-Skills&lt;br /&gt;SPS-PastProjects&lt;br /&gt;SPS-Interests&lt;br /&gt;SPS-School&lt;br /&gt;SPS-SipAddress&lt;br /&gt;SPS-Birthday&lt;br /&gt;SPS-MySiteUpgrade&lt;br /&gt;SPS-DontSuggestList&lt;br /&gt;SPS-ProxyAddresses&lt;br /&gt;SPS-HireDate&lt;br /&gt;SPS-LastColleagueAdded&lt;br /&gt;SPS-OWAUrl&lt;br /&gt;SPS-ResourceAccountName&lt;br /&gt;SPS-MasterAccountName&lt;br /&gt;Assistant&lt;br /&gt;WorkEmail&lt;br /&gt;CellPhone&lt;br /&gt;Fax&lt;br /&gt;HomePhone&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" align="left"&gt;&lt;font size="2"&gt;&amp;nbsp; &lt;strong&gt;NOTE: &lt;/strong&gt;The &amp;quot;AccountName&amp;quot; filter should be applied to the retrieved value to get the users login ID into a field value.&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Form Configuration:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;A few rules need to be set up to execute when the form opens.&amp;nbsp; To enter these Form Option Rules:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Click on &amp;quot;Tools&amp;quot; in the menu bar and select &amp;quot;Form Options...&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; In the &amp;quot;Category&amp;quot; pane, click on &amp;quot;Open and Save&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; In the &amp;quot;Open Behavior&amp;quot; section, click on &amp;quot;Rules...&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;Several rules are needed for the configuration of the Roles.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="1"&gt;&lt;strong&gt;Clear Roles:&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;The Roles need to be cleared each time the form is opened.&amp;nbsp; Otherwise, the form will retain the roles of the last person to save the form.&lt;/font&gt;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Click the &amp;quot;Add...&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Enter &amp;quot;ClearRoles&amp;quot; in the name field for this rule.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click the &amp;quot;Add Action...&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Set the &amp;quot;Action&amp;quot; to &amp;quot;Set a field&amp;#39;s value&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; Click the field selector button next to the text box for the &amp;quot;Field&amp;quot; entry.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;6)&amp;nbsp; Navigate through your field structure until you find one of the True/False (Boolean) fields that were set up in the &amp;quot;Hidden Fields&amp;quot; section (above) and started with &amp;quot;Role-&amp;quot; in the example.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;7)&amp;nbsp; Click the &amp;quot;OK&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;8)&amp;nbsp; Click the function button (&amp;quot;Fx&amp;quot;) next to the &amp;quot;Value&amp;quot; text box.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;9)&amp;nbsp; Click the &amp;quot;Insert Function&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;10) Click the &amp;quot;false&amp;quot; entry in the &amp;quot;Functions&amp;quot; pane on the right side.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;11)&amp;nbsp;Click &amp;quot;OK&amp;quot; three times until arriving back at the &amp;quot;Rules&amp;quot; page.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;12)&amp;nbsp;Repeat the process to clear out the role for each variable that was created.&amp;nbsp; In the example used in the &amp;quot;Hidden Fields&amp;quot; section, this would be done three times.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;strong&gt;&lt;font size="1"&gt;Set Roles:&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;There are two rules set up for each Role.&amp;nbsp; One to set the Role value to True and one for False.&lt;/font&gt;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Click the &amp;quot;Add...&amp;quot; button to create a new rule.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Type in a name for your Rule&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click the &amp;quot;Set Condition...&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; In the first drop down box, select &amp;quot;The expression&amp;quot;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; In the remaining text box, an XPath conditional expression is to be entered.&amp;nbsp; It is of the following format:&lt;/font&gt;&lt;/div&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;strong&gt;False Condition (User not in Role):&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;xdXDocument:GetDOM(&amp;quot;&amp;lt;Name of your Data Connection for the Role you are comparing&amp;gt;&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()&amp;lt;Your field where you are storing the current users ID (&amp;quot;CurrentUser&amp;quot; in &amp;quot;HiddenFields&amp;quot; example)&amp;gt; = &amp;quot;&amp;quot;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;Example:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;xdXDocument:GetDOM(&amp;quot;Role-01G_GlobalMaint&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()/my:myFields/my:HiddenFields/my:CurrentUser] = &amp;quot;&amp;quot;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;
&lt;blockquote class="ExternalClass42B019C3E5A644E1BFF5082955CE6353" dir="ltr" style="MARGIN-RIGHT:0px;"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;strong&gt;True Condition (User in Role):&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;xdXDocument:GetDOM(&amp;quot;&amp;lt;Name of your Data Connection for the Role you are comparing&amp;gt;&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()&amp;lt;Your field where you are storing the current users ID (&amp;quot;CurrentUser&amp;quot; in &amp;quot;HiddenFields&amp;quot; example)&amp;gt; != &amp;quot;&amp;quot;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;Example:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;xdXDocument:GetDOM(&amp;quot;Role-01G_GlobalMaint&amp;quot;)/xml/rs:data/z:row/@ows_Group[../@ows_UserID = xdXDocument:get-DOM()/my:myFields/my:HiddenFields/my:CurrentUser] != &amp;quot;&amp;quot;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;6)&amp;nbsp; Click &amp;quot;OK&amp;quot;&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;7)&amp;nbsp; Click the &amp;quot;Add Action...&amp;quot; button&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;8)&amp;nbsp; Set the &amp;quot;Action&amp;quot; to &amp;quot;Set a field&amp;#39;s value&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;9)&amp;nbsp; Click the field selector button next to the text box for the &amp;quot;Field&amp;quot; entry.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;10)&amp;nbsp;Navigate through your field structure until you find&amp;nbsp;the True/False (Boolean) field for the Role you are setting&amp;nbsp;that was set up in the &amp;quot;Hidden Fields&amp;quot; section (above) and started with &amp;quot;Role-&amp;quot; in the example.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;7)&amp;nbsp; Click the &amp;quot;OK&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;8)&amp;nbsp; Click the function button (&amp;quot;Fx&amp;quot;) next to the &amp;quot;Value&amp;quot; text box.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;9)&amp;nbsp; Click the &amp;quot;Insert Function&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;10) Click the &amp;quot;true&amp;quot; or &amp;quot;false&amp;quot; entry in the &amp;quot;Functions&amp;quot; pane on the right side depending on the condition you are setting. 
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;11)&amp;nbsp;Click &amp;quot;OK&amp;quot; four times until arriving back at the &amp;quot;Rules for Opening Forms&amp;quot; page.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;12)&amp;nbsp;Repeat the process to set a true and false condition for each Role.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;u&gt;&lt;font size="2"&gt;Use:&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;When deciding to hide or show a section, button, field, etc...(object) on the form using the roles, perform the following steps:&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;1)&amp;nbsp; Double-click the object on the form to get to it&amp;#39;s properties.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;2)&amp;nbsp; Click on the &amp;quot;Display&amp;quot; tab.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;3)&amp;nbsp; Click on the &amp;quot;Conditional Formatting...&amp;quot; button.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;4)&amp;nbsp; Click &amp;quot;Add...&amp;quot; to add a new condition.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;5)&amp;nbsp; Click the first drop down and select &amp;quot;Select a field or group...&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;6)&amp;nbsp; Navigate to the &amp;quot;Role-&amp;quot; variable that was created and set that you wish to check.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;7)&amp;nbsp; Click &amp;quot;OK&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;8)&amp;nbsp; Leave the middle box (for this example) set to &amp;quot;is equal to&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;9)&amp;nbsp; Set the third drop down to &amp;quot;FALSE&amp;quot;.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;10)&amp;nbsp;Click the &amp;quot;AND-&amp;gt;&amp;quot; button and repeat this for any other Roles you wish to compare.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;11)&amp;nbsp;Check the box next to &amp;quot;Hide this control.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;12) Click OK until you are back on the main form.&lt;/font&gt;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="ExternalClass42B019C3E5A644E1BFF5082955CE6353"&gt;&lt;font size="2"&gt;You have just now hidden an object for anyone that does not belong to the Roles you specified.&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/56092.aspx</link><pubDate>Tue, 22 Jun 2010 10:17:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56092</guid><dc:creator>aliash</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56092.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=56092</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Did you&amp;nbsp;ever make any progress with this ?&amp;nbsp; I looked at this link from Clayton&amp;#39;s blog and it looked interesting, but I didn&amp;#39;t really understand all that it was doing - so it&amp;nbsp;was&amp;nbsp;difficult to apply to my particular situation where I want to test the current users role.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;a href="http://blog.ianchivers.com/wordpress/?p=37" rel="nofollow"&gt;&lt;strong&gt;&lt;font color="#536d88"&gt;http://blog.ianchivers.com/wordpress/?p=37&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/45040.aspx</link><pubDate>Mon, 27 Jul 2009 20:46:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45040</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=45040</wfw:commentRss><description>&lt;p&gt;Don&amp;#39;t try to get it from the list.&amp;nbsp; SharePoint groups exist at the site collection level, and there are built-in web services like the one I mentioned (UserGroup.asmx, not my blog) that can enumerate these groups and their users.&amp;nbsp; GetUserCollection or something like that - you can find this with a quick search.&lt;/p&gt;
&lt;p&gt;As for the AD part, AD groups can be placed inside SP groups, so it&amp;#39;s neither here nor there.&amp;nbsp; If you had an AD group defined for each combination, you could use my method, but that depends on how many group there are and how much time&amp;nbsp;it would take to manage them that way.&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/45028.aspx</link><pubDate>Mon, 27 Jul 2009 19:43:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45028</guid><dc:creator>tdheidt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=45028</wfw:commentRss><description>&lt;p&gt;I appreciate the quick response.&amp;nbsp; Funny thing is I was reading that exact article when you sent it.&amp;nbsp; Unfortunately, I do not think it will serve my purpose.&amp;nbsp; The users roles change depending on the part of the Intranet they access so their security is not kept in AD, but instead in Sharepoint groups.&amp;nbsp; This is why I am looking to try and retrieve this information from the library of the form.&amp;nbsp; If I cannot connect directly to the library to get the security, I am considering creating a workflow that updates a list with security information in it so that I can retrieve via a secondary connection.&amp;nbsp; However, this is bulky and cumbersome and I am not comfortable putting user roles in a list that I would need to make visible to any who use that application.&lt;/p&gt;</description></item><item><title>Re: Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/45025.aspx</link><pubDate>Mon, 27 Jul 2009 19:30:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45025</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45025.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=45025</wfw:commentRss><description>&lt;p&gt;Try this (no code):&lt;/p&gt;
&lt;p&gt;&lt;a title="InfoPath – User Roles in Browser-Enabled Forms Using AD&amp;nbsp;Groups" href="http://claytoncobb.wordpress.com/2009/07/19/infopath-user-roles-in-browser-enabled-forms-using-groups/"&gt;&lt;strong&gt;&lt;font color="#536d88"&gt;InfoPath&amp;nbsp;- User Roles in Browser-Enabled Forms Using AD&amp;nbsp;Groups&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t use SharePoint Groups but can use AD groups (Security Groups and/or Distribution Lists).&amp;nbsp; Since you&amp;#39;re willing to use code (requires administrative approval for browser forms), then you might be able to leverage the built-in UserGroup.asmx web service to enumerate the users within a given group.&lt;/p&gt;</description></item><item><title>Retrieve Sharepoint Library Permissions</title><link>https://www.infopathdev.com:443/forums/thread/45019.aspx</link><pubDate>Mon, 27 Jul 2009 19:06:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45019</guid><dc:creator>tdheidt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=45019</wfw:commentRss><description>&lt;p&gt;I am hoping someone can help with this.&amp;nbsp; I have been spinning my wheels for days on this.&amp;nbsp; I have a library in Sharepoint that uses an Infopath 2007 form for input.&amp;nbsp; This form is a web-enabled form.&amp;nbsp; In this form, I have several section.&amp;nbsp; Certain users should only to be able to fill out certain sections of the form based on their role.&amp;nbsp; I need to be able to connect to the library&amp;#39;s permissions from infopath to try and retrieve what group the current user is in so that I can apply security to the form.&amp;nbsp; I have tried to delve into the SPUSER Collection a bit, but am struggling with it as I am not developing on the Sharepoint server and do not have the Microsoft.Sharepoint.dll file registered.&amp;nbsp; Really hoping someone can help.&amp;nbsp; This is a killer for my company to use Infopath if I cannot get this to work.&amp;nbsp; Thanks.&lt;/p&gt;</description></item></channel></rss>