<?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>isusermemberofgroups Function</title><link>https://community.appian.com/discussions/f/new-to-appian/18889/isusermemberofgroups-function</link><description>Hi All, 
 
 I am using the following expression rule to check whether the loggedin user belongs to a group or not. If he/she belongs to a group then it returns &amp;quot;True&amp;quot;, otherwise it returns an &amp;quot;Error&amp;quot; instead of returning &amp;quot;False&amp;quot;. Please help me to handle</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/97555?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 11:21:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6443043b-2dc3-4932-9e99-21a6104d7cd2</guid><dc:creator>Priyanka!</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you get the solution on this? I am facing similar issue. I facing this issue with only one user which is deactivated in system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/91011?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 12:01:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11170d05-d9e1-4978-a13e-39648af3ddde</guid><dc:creator>Keerthana Ranganathan</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/sureshkumarj0001"&gt;sureshkumarj0001&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;What is the visibility &amp;amp; privacy policy of this group,&amp;nbsp;&lt;span&gt;cons!FR_LPI_LEASE_TEAM_GRP_CONSTANT?&lt;br /&gt;And when are you getting this error? while running the flow/ request?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/91001?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 04:57:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad868be5-d7f9-4ea9-9221-649fe8c0f80c</guid><dc:creator>sureshkumarj0001</dc:creator><description>&lt;p&gt;local!isLeaseGRPMember:a!isUserMemberOfGroup(&lt;br /&gt; username: local!loggedUser,&lt;br /&gt; groups: cons!FR_LPI_LEASE_TEAM_GRP_CONSTANT&lt;br /&gt; ),&lt;/p&gt;
&lt;p&gt;readOnly: if(&lt;br /&gt; local!isLeaseGRPMember,&lt;br /&gt; true,&lt;br /&gt; false&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;im using this in interface still i was getting the same error&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!isUserMemberOfGroup [line 3]: [InvalidUserException]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;------------where line 3 is&amp;nbsp;local!isLeaseGRPMember:a!isUserMemberOfGroup(&lt;br /&gt;username: local!loggedUser,&lt;br /&gt;groups: cons!FR_LPI_LEASE_TEAM_GRP_CONSTANT&lt;br /&gt;),&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/74307?ContentTypeID=1</link><pubDate>Sat, 23 May 2020 14:40:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c4b70d17-c7f1-413a-8c28-c670a65e8b4e</guid><dc:creator>ankita0004</dc:creator><description>&lt;p&gt;I think you are using this function in process model or expression rule you are using in process model script task.&lt;/p&gt;
&lt;p&gt;loggedinuser function don&amp;#39;t work in process model instead of it you can use pp!initiator (Process Initiator) or tp!owner (Task Owner)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/74303?ContentTypeID=1</link><pubDate>Sat, 23 May 2020 04:44:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ab3ae0c-4699-469a-91f1-59a28193a581</guid><dc:creator>Ponnuchamy Arumugasamy</dc:creator><description>&lt;p&gt;Yeah. System administrator only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/74298?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 15:35:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd626f21-40ee-4982-9fb1-8050edc23ce8</guid><dc:creator>Eliot Gerson</dc:creator><description>&lt;p&gt;Sorry, to clarify, you mean you just tried this with the built-in function, and you got an error? Are you running this as a system administrator or a basic user?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/74295?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 15:05:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb1b5c73-0d37-4d89-b0a2-fef2c0fb8f8c</guid><dc:creator>Ponnuchamy Arumugasamy</dc:creator><description>&lt;p&gt;Hi. I am getting this error while using the built-in function only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/74294?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 15:04:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90a9023c-85cc-484c-9852-482759a31c61</guid><dc:creator>Eliot Gerson</dc:creator><description>&lt;p&gt;Does this work if you use the built-in function &amp;quot;isusermemberofgroup&amp;quot; rather than the plugin function &amp;quot;isusermemberofgroups&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/74252?ContentTypeID=1</link><pubDate>Thu, 21 May 2020 14:48:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4c9cc5e-9eb5-4329-afec-76c6508f95fd</guid><dc:creator>Ponnuchamy Arumugasamy</dc:creator><description>&lt;p&gt;Hi, Danny. Thanks for your response.&lt;/p&gt;
&lt;p&gt;Version: 20.1&lt;/p&gt;
&lt;p&gt;Yes. It has 8 active&amp;nbsp;statements only and others are commented. I have used them for testing purpose. Thank you.&lt;/p&gt;
&lt;p&gt;For your reference,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*if(*/
  /*isusermemberofgroups(*/
    /*&amp;quot;test@test.com&amp;quot;,*/
    /*cons!NVMS_GROUP_Admin*/
  /*),*/
  /*true,*/
  /*false*/
/*)*/

/*if(*/
  /*isusermemberofgroups(*/
    /*ri!usernameInput,*/
    /*user(loggedInUser(), &amp;quot;email&amp;quot;),*/
    /*loggedInUser(),*/
    /*ri!groupIdInput*/
  /*),*/
  /*true,*/
  /*false*/
/*)*/

if(
  isusermemberofgroups(
    loggedInUser(),
    ri!groupIdInput
  ),
  true,
  false
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: isusermemberofgroups Function</title><link>https://community.appian.com/thread/74248?ContentTypeID=1</link><pubDate>Thu, 21 May 2020 14:04:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70cc6975-d449-4ca9-9842-e86700218136</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;What version of Appian are you on? Can you also attach the entire expression? In your example, your error says line 22 but your expression only has 8 lines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>