<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94737.aspx</link><pubDate>Thu, 12 Dec 2013 16:33:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94737</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94737.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94737</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you for taking the time to type this up - it is sure to help others! I&amp;#39;m so glad you have this working the way you want it to.&lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94732.aspx</link><pubDate>Thu, 12 Dec 2013 15:52:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94732</guid><dc:creator>ClamBake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94732.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94732</wfw:commentRss><description>&lt;p&gt;Hi Hilary &amp;amp; Doreen:&lt;/p&gt;
&lt;p&gt;Great news! Got things to work as should.&amp;nbsp; The key was understanding&amp;nbsp;InfoPath&amp;#39;s order of determining a user&amp;#39;s role.&amp;nbsp; As the value of a field in a form template takes top precedence, that&amp;#39;s the route I followed.&amp;nbsp; So as to possibly help others and for the record, here&amp;#39;s specifically how it was&amp;nbsp;handled: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Seeing I already had a SharePoint list of Managers which is used&amp;nbsp;as a data source to&amp;nbsp;the name picker drop-down field on the form, a new SharePoint list was created in the same fashion.&amp;nbsp;&amp;nbsp;This list&amp;nbsp;consists only of Officers.&amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Once the list was created, it was&amp;nbsp;populated with the members of the Officers group.&amp;nbsp; (For&amp;nbsp;those cases where some&amp;nbsp;officers also need to exist in the manager&amp;#39;s list,&amp;nbsp;they were kept there as well.&amp;nbsp; That&amp;#39;s important for step 5 later.)&amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Turning to the InfoPath form, I made a new data connection to my Officers SharePoint list with a specific reference to the user ID column of that list. (This reflects the same configuration used for my manager SharePoint list.) The reference is used to compare the current user&amp;#39;s logged on ID (via the userName() function) against the SharePoint&amp;#39;s list.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;After the data connection was established,&amp;nbsp;a new user role was created&amp;nbsp;in the form called Officers.&amp;nbsp; Its data source is the new Officers SharePoint list.&amp;nbsp;Lastly, the new Officers&amp;nbsp;role was then moved to the top of the user roles dialog box.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Finally, in the form open options, the first rule created has the following conditions: {User&amp;#39;s current role is equal to &amp;quot;Officer&amp;quot; and user&amp;#39;s curent role is equal to &amp;quot;Manager&amp;quot; OR user&amp;#39;s current role is equal to &amp;quot;Officer&amp;quot; and user&amp;#39;s current role is NOT equal to &amp;quot;Manager&amp;quot;}.&amp;nbsp; The ensuing action was then to show the desired view. &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Understanding this now lets me take a more elegant approach.&amp;nbsp; That is&amp;nbsp;previously defined user roles in the form, as&amp;nbsp;set to user name, can now be replaced by the creation and use&amp;nbsp;of individual SharePoint lists.&amp;nbsp;Then by following above numbered steps, I&amp;#39;ll be able to create rules and conditions from which to act accordingly. Benefits to this include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;No longer needing to maintain the form&amp;#39;s user list itself and republish but rather to simply update the applicable&amp;nbsp;SharePoint (user group) list.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Greater form security because the user list does not exist in the underlying XML, thus less risk of exploit.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;It&amp;#39;s a&amp;nbsp;code-free solution. &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;So &lt;strong&gt;Thank You so very much for the timely assist!&lt;/strong&gt;&amp;nbsp; I&amp;#39;ll consider this my early Christmas gift....&amp;nbsp; :) &amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94714.aspx</link><pubDate>Wed, 11 Dec 2013 12:14:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94714</guid><dc:creator>ClamBake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94714</wfw:commentRss><description>&lt;p&gt;Hi Hilary &amp;amp; Doreen: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;To continue following up to your&amp;nbsp;follow up question if the Managers user role comes from a form field: Yes, it does.&amp;nbsp; After carefully rereading your quoted guidelines as to order of role evaluation, indeed I do agree that the form field value is taking precedence.&amp;nbsp; (At least in that regard I&amp;#39;m not going crazy! :) )&lt;/p&gt;
&lt;p&gt;I do understand your suggestion of adding a form field with the user name of the&amp;nbsp;Officer and changing the group to use that, then test. Let me try that trick - having a feeling that&amp;#39;s going to bring me closer to my solution.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you both, very much!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94708.aspx</link><pubDate>Wed, 11 Dec 2013 00:37:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94708</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94708</wfw:commentRss><description>&lt;p&gt;If you follow Hilary&amp;#39;s idea then you can compare&amp;nbsp;curent user to role 1 and role 2 and if contained in both then decide which view to switch to.&amp;nbsp; But don&amp;#39;t forget to clear the current user value when the user is done submitting the form.&lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94706.aspx</link><pubDate>Tue, 10 Dec 2013 23:25:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94706</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94706.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94706</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;And your Managers user role - that is from a form field?&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;I wonder - the article linked above says:&lt;/p&gt;&lt;p&gt;If you have assigned roles to users that are based on any combination of user names, groups, or values from a field, when a user opens a form that is based on your form template, InfoPath determines the role to assign to that user by using the following order:&lt;/p&gt;&lt;ul class="cntIndent36"&gt;&lt;li&gt;The user&amp;#39;s name is a value of a field in the form template.&lt;/li&gt;&lt;li&gt;The user&amp;#39;s name is in Active Directory.&lt;/li&gt;&lt;li&gt;The user is a member of an Active Directory group.&lt;/li&gt;&lt;/ul&gt;&lt;p class="cntIndent36"&gt;&lt;b class="cntnote"&gt;&amp;nbsp;Note&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;If the user is a member of several groups and you are assigning user roles that are based on a group, InfoPath checks the member list of each group in the order that the group is listed in the &lt;b class="ui"&gt;Manage User Roles&lt;/b&gt; dialog box. For example, if the user is a member of both the receiving agent group and the administrator group, and the administrator group is listed before the receiving agent group, the user will be assigned the user role for the administrator group.&lt;/p&gt;&lt;ul class="cntIndent36"&gt;&lt;li&gt;If none of the above are true, the default role is used.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;Now - my assumption would be that it would do this one role at a time, but I think that is actually not the case. If Manager is in a form field, I&amp;#39;m wondering if it is being evaluated &lt;em&gt;first&lt;/em&gt;. You could try (temporarily) adding a form field with the user name of your Officer and change the group to use that, then test.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94705.aspx</link><pubDate>Tue, 10 Dec 2013 23:15:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94705</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94705</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;That looks right, and it seems from reviewing the article I linked to above that it should work. InfoPath usually displays the user&amp;#39;s role in a lower corner of the window (I forget which) - have you verified that when Officers are getting assigned to Manager it displays them in that role (just ruling out any view switching logic issues...)&lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94701.aspx</link><pubDate>Tue, 10 Dec 2013 16:42:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94701</guid><dc:creator>ClamBake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94701</wfw:commentRss><description>&lt;p&gt;Thanks for the quick response.&amp;nbsp; The order is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Officers&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Submitters (is default user group; NOT set as initiator;&amp;nbsp;source is &amp;quot;Group names&amp;quot; as taken from our corporate domain)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Managers&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94698.aspx</link><pubDate>Tue, 10 Dec 2013 15:10:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94698</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94698.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94698</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I always end up using some trial and error on these things myself - what order are your roles in if you open the User Roles dialog?&lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/94697.aspx</link><pubDate>Tue, 10 Dec 2013 14:46:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94697</guid><dc:creator>ClamBake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94697.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=94697</wfw:commentRss><description>&lt;p&gt;Hi Hilary:&lt;/p&gt;
&lt;p&gt;First, thank you for the many responses you&amp;#39;ve posted to others in this site as your answers have many times over helped me resolve my InfoPath challenges. I&amp;#39;m having a devilish time with an InfoPath 2007 form we use to report business expenses and hope you will consider sharing your expertise with someone who is new to InfoPath &amp;amp; SharePoint. &lt;/p&gt;
&lt;p&gt;First some background: when an employee wishes to create a new expense report, they&amp;nbsp;navigate&amp;nbsp;to a (MOSS) SharePoint site on our corporate intranet and click a link&amp;nbsp;to create a new report.&amp;nbsp; The link then opens a&amp;nbsp;blank instance of the InfoPath form. The user completes the form and clicks a submit button which fires rules that uploads the form into a document library of the&amp;nbsp;SharePoint site.&amp;nbsp; Like&amp;nbsp;Doreen&amp;#39;s case&amp;nbsp;above our form also uses&amp;nbsp;different views.&amp;nbsp;&amp;nbsp;Based upon which user is&amp;nbsp;opening the form from the SharePoint site (document) library determines which view they see.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;In the form I&amp;#39;ve&amp;nbsp;defined user roles&amp;nbsp;(e.g. Tools -&amp;gt; User Roles) and have also defined&amp;nbsp;form open rules (e.g. Tools -&amp;gt; Form Options -&amp;gt; Open and Save category / Open behavior section {Rules} button).&amp;nbsp; Together these have successfully worked.&amp;nbsp; However, there are some users&amp;nbsp;who simultaneously exist&amp;nbsp;in two different roles.&amp;nbsp; As a result, when the form opens they do not always see the&amp;nbsp;view they should&amp;nbsp;as defined in the form open rules.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first role group&amp;nbsp;I created within the form is&amp;nbsp;named&amp;nbsp;&amp;quot;Officers&amp;quot;.&amp;nbsp; The members of this group are&amp;nbsp;defined by the &amp;quot;User names&amp;quot; option of the Modify&amp;nbsp;User Role dialog box&amp;nbsp;(ex. CompanyDomain\A12345).&amp;nbsp; The purpose of this role was to help ensure that the form opens to&amp;nbsp;a particular view for those who are members of the &amp;quot;Officers&amp;quot; group.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The second role group consists of&amp;nbsp;users&amp;nbsp;defined in a SharePoint list and are categorized as &amp;quot;Manager&amp;quot;.&amp;nbsp; This list&amp;nbsp;acts as a data source to a&amp;nbsp;(name picker) drop-down field on the form.&amp;nbsp; (For example, when the user is completing their expense report, they click on the name drop-down to select their&amp;nbsp;approving manager.&amp;nbsp; Furthermore, this list contains some of the same members from the &amp;quot;Officers&amp;quot; group&amp;nbsp;because in some cases the &amp;quot;Officer&amp;quot; is also an approver and thus their name must show in the drop-down.)&amp;nbsp; In the form&amp;#39;s open rules, those in this &amp;quot;Manager&amp;quot; group will see a different view.&amp;nbsp; However, for those who exist in both groups, it seems the form is ignoring those defined in &amp;quot;Officer&amp;quot; group and instead treats them as the lesser &amp;quot;Manager&amp;quot; role -&amp;nbsp;thus showing another view they shouldn&amp;#39;t see.&amp;nbsp; If I remove the Officer from the Manager group, then the form will open and display the correct view.&amp;nbsp; In essence the Manager view is taking precedence as&amp;nbsp;it appears InfoPath gives higher priority to SharePoint list membership versus the role defined within the form itself.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Based on your explanation to Doreen above, do I need to define the Officer group in the form under the &amp;quot;Group name&amp;quot; section instead of &amp;quot;User names&amp;quot; option? And if so,&amp;nbsp;do I keep that SharePoint list of &amp;quot;Managers&amp;quot;, including the duplicate officers, so that the names continue to appear on that drop-down name picker?&lt;/p&gt;
&lt;p&gt;Hope this well explains the situation.&amp;nbsp; Thanks in advance&amp;nbsp;for your help!&lt;/p&gt;
&lt;p&gt;-Joe&lt;/p&gt;</description></item><item><title>Re: User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/79185.aspx</link><pubDate>Fri, 01 Jun 2012 21:44:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79185</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79185.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=79185</wfw:commentRss><description>&lt;p&gt;Hi, Doreen:&lt;/p&gt;
&lt;p&gt;Just wanted to note here what you mentioned in email - that you&amp;#39;ve got this sorted out by applying the &amp;quot;anyone&amp;quot; role last. For future reference, here&amp;#39;s an Office Online &lt;a href="http://office.microsoft.com/en-us/infopath-help/introduction-to-user-roles-HP010165118.aspx"&gt;article&lt;/a&gt; I use when I need to get these squared away. It states:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;Note &lt;/strong&gt;If the user is a member of several groups and you are assigning user roles that are based on a group, InfoPath checks the member list of each group in the order that the group is listed in the &lt;b class="ui"&gt;Manage User Roles&lt;/b&gt; dialog box. For example, if the user is a member of both the receiving agent group and the administrator group, and the administrator group is listed before the receiving agent group, the user will be assigned the user role for the administrator group.&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>User roles not being recognized</title><link>https://www.infopathdev.com:443/forums/thread/79014.aspx</link><pubDate>Tue, 29 May 2012 18:26:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79014</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79014.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=79014</wfw:commentRss><description>&lt;p&gt;I am using IP 2007.&amp;nbsp; I thought I had&amp;nbsp;user roles&amp;nbsp;working perfectly but for some reason, since last week, when an existing form opens, only the default/initiator role is recognized.&amp;nbsp;I have 6 user roles set up, the &amp;quot;Anyone&amp;quot; role = All Employees is&amp;nbsp;set as default and initiator.&amp;nbsp;5 other special roles are set in the form when it is created (i.e. Approver 1, Approver 2, Approver 3, Manager, and Check Processor).&amp;nbsp; Basically I have several views 1) a set of editable views&amp;nbsp;viewable by&amp;nbsp;the 5 special roles and 2) a set of read-only views that can viewed by Anyone.&lt;/p&gt;&lt;p&gt;My understanding is the initiator role only kicks in when a new form is created. So in my case,&amp;nbsp;any employee can create a form, so the&amp;nbsp;&amp;quot;Anyone&amp;quot; role would be appropriate as&amp;nbsp;initiator.&amp;nbsp; My&amp;nbsp;understanding is the default role will be used when the form cannot ascertain which role the current user is if any.&amp;nbsp; &lt;/p&gt;&lt;p&gt;My Rules form open behavior sets the forms status first, then&amp;nbsp;identitifes&amp;nbsp;if current users role = a special role.&amp;nbsp; Here&amp;#39;s an example of&amp;nbsp;the rule if the form is in &amp;quot;Awaiting Approval&amp;quot; (AA) status and the user is the 1st approver:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If current users role = approver 1 &lt;strong&gt;and&lt;/strong&gt; approval level = AA then switch to &lt;em&gt;editable&lt;/em&gt; approval view&lt;/p&gt;&lt;p&gt;    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If current users role != approver 1 &lt;strong&gt;and&lt;/strong&gt; approval level = AA then switch to &lt;em&gt;read&lt;/em&gt;-&lt;em&gt;only&lt;/em&gt; approval view&amp;nbsp;&lt;/p&gt;&lt;p&gt;    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The check box to &amp;quot;Stop processing rules when this rule finishes&amp;quot; is checked.&lt;/p&gt;&lt;p&gt;I have similar rules for each &amp;quot;special&amp;quot; role at each &amp;quot;approval level&amp;quot;.&lt;/p&gt;&lt;p&gt;The problem is that no matter who opens the form, only the default role &amp;quot;Anyone&amp;quot; is recognized and the view belonging to this role is opened.   The tricky part is that any of the special roles I have set up (5 of them) can also be a member of the &amp;quot;Anyone&amp;quot; role, so I think my rules are confused about who is who.&lt;/p&gt;&lt;p&gt;I have tried setting the rule as: if current user = approver 1 &lt;strong&gt;and&lt;/strong&gt; current user = anyone&amp;nbsp; &lt;strong&gt;and&lt;/strong&gt; approval level = AA but that doesn&amp;#39;t seem to make a difference.&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>