<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Set the User Role in second infopath form from initial form stored on Sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/87383.aspx</link><pubDate>Sun, 24 Feb 2013 21:19:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87383</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87383.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=87383</wfw:commentRss><description>&lt;p&gt;Yes, but you have to use the domain\username format that User Roles recognize. &lt;/p&gt;&lt;p&gt;Another approach would be to call User Profile Service and resolve the username based on the user&amp;#39;s full name. That might be better because it provides a migration path. Clayton Cobb has a nice post on his SharePoint Madness blog (I think it&amp;#39;s his top post).&lt;/p&gt;&lt;p&gt;User Roles will work if the value is&amp;nbsp;correct, but it will also require that the users be logged in with those accounts.&lt;/p&gt;</description></item><item><title>Set the User Role in second infopath form from initial form stored on Sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/87232.aspx</link><pubDate>Tue, 19 Feb 2013 12:49:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87232</guid><dc:creator>cveitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=87232</wfw:commentRss><description>&lt;p&gt;We have created an HR form to report sickness which restricts the views by using &amp;#39;User Roles&amp;#39; set to the manager&amp;#39;s AccountID when submitted to Sharepoint. Upon submission the form also sends an email to the manager to inform of the absence. &lt;/p&gt;&lt;p&gt;When the employee returns to work, a second infopath form is populated from the information stored on Sharepoint using the details from the original form. We want to restrict views in the second infopath form to the managers identified in the first form. At present we are populating text fields with the name from the AccountID in Sharepoint but this does not set the User Roles hence the views are not set.&lt;/p&gt;&lt;p&gt;To control the view, is there a way to set the User Roles from a field which contains only the manager&amp;#39;s name in the second form? The field is no longer an email address when submitted to sharepoint. Is there a way convert the text field to an email address to set the User Role to the manager&amp;#39;s name? Ideally without using code.&lt;/p&gt;&lt;p&gt;We are using Infopath and Sharepoint 2010.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>