<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Display certain fields depending on current user role determined by Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/87586.aspx</link><pubDate>Fri, 01 Mar 2013 06:26:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87586</guid><dc:creator>brice235i</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87586.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87586</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;My form has a restricted&amp;nbsp;view - accessible by a button on the default view.&amp;nbsp; I have a custom list in Sharepoint that has columns for user account ID and Security Role. &lt;/p&gt;
&lt;p&gt;I am using GetUserProfileByName webservice to populate a text box displaying the current user&amp;#39;s account ID.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Is there a way to match this current user ID to the corresponding sharepoint list item for this person in order to determine the user&amp;#39;s Security Role and show/hide the associated button to the restricted area based on this returned security role for the current user?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you in advance.&lt;/p&gt;</description></item></channel></rss>