<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/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>How to show hide a dropdown based on logged in user&amp;#39;s group?</title><link>https://community.appian.com/discussions/f/user-interface/12518/how-to-show-hide-a-dropdown-based-on-logged-in-user-s-group</link><description>Scenario : Need to show a dropdown only for administrator group members. How to check this condition and hide dropdown when logged in user is not an administrator? 
 As sample SAIL example/recipe would be great please?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to show hide a dropdown based on logged in user's group?</title><link>https://community.appian.com/thread/55687?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 09:58:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0eb28451-a1ab-4271-a87d-06b2999ceee8</guid><dc:creator>anushas0002</dc:creator><description>&lt;p&gt;Thank You Krishna and Raghu both!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to show hide a dropdown based on logged in user's group?</title><link>https://community.appian.com/thread/55675?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 08:52:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e7cdd02-4b94-41c4-bfe4-818d9fdf6e44</guid><dc:creator>krishnau3863</dc:creator><description>Hi anushas0002,&lt;br /&gt;
 &lt;br /&gt;
                     Use this Function  isusermemberofgroup(), and also put showWhen condition in dropdown.&lt;br /&gt;
&lt;br /&gt;
Example code:  showWhen: if(&lt;br /&gt;
                              isusermemberofgroup(&lt;br /&gt;
                                username: loggedInUser(),&lt;br /&gt;
                                groupId:cons!ISAM_GROUP_SUPER_USER&lt;br /&gt;
                              ),&lt;br /&gt;
                              true(),&lt;br /&gt;
                              false()&lt;br /&gt;
                            ),&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to show hide a dropdown based on logged in user's group?</title><link>https://community.appian.com/thread/55673?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 08:50:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7abe29b-45a8-42a9-a3c1-a8fb29bd1b82</guid><dc:creator>Raghuvaran Nagarajan</dc:creator><description>&lt;p&gt;&lt;a href="/members/anushas0002"&gt;anushas0002&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can do it like the below based on your use case,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;/*To check if the loggedInUser is an Appian system administrator*/
a!dropdownField(
  showWhen: isusersystemadministrator(
    loggedInUser()
  )
  /* OTHER PARAMETERS*/
)

/*To check if the loggedInUser() is a member of any Application group*/
a!dropdownField(
  showWhen: isusermemberofgroup(
    loggedInUser(), 123 /* group ID */
  )
  /* OTHER PARAMETERS*/
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Raghu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>