<?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>suggestions for expression rule to get user from a list that is a member of a certain group</title><link>https://community.appian.com/discussions/f/general/11429/suggestions-for-expression-rule-to-get-user-from-a-list-that-is-a-member-of-a-certain-group</link><description>Hi, 
 Any suggestions on how to achieve this efficiently? 
 
 I have users in the system that have different logins but the same email address. I&amp;#39;m using the getusersby() function and getting this array of users (typically 2 users) via their email address</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: suggestions for expression rule to get user from a list that is a member of a certain group</title><link>https://community.appian.com/thread/50330?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 01:27:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90195f44-f8da-4e3e-b9d1-5dd93eb4f324</guid><dc:creator>garym</dc:creator><description>@Arun - Thank you, that worked nicely&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: suggestions for expression rule to get user from a list that is a member of a certain group</title><link>https://community.appian.com/thread/50296?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 20:06:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60d06130-65ce-4ef9-9f6c-8731384be4ef</guid><dc:creator>Arun Theja Muthyalu</dc:creator><description>&lt;p&gt;Hi garym,&lt;/p&gt;
&lt;p&gt;An expression rule something like below should&amp;nbsp;accomplish your requirement.&lt;/p&gt;
&lt;p&gt;filter(&lt;/p&gt;
&lt;p&gt;isusermemberofgroup(&lt;/p&gt;
&lt;p&gt;_,&lt;/p&gt;
&lt;p&gt;/* Group Id of the Group that you want to check the presence of the User. */&lt;/p&gt;
&lt;p&gt;pv!groupId&lt;/p&gt;
&lt;p&gt;),&lt;/p&gt;
&lt;p&gt;/* Process Variable that holds an array of Users. */&lt;/p&gt;
&lt;p&gt;pv!users&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;The above rule filters the Users that belong to the Group you specify from the total list of Users. Hope this helps.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Arun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>