<?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>a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/discussions/f/rules/25150/a-isusermemberofgroup-throwing-invaliduserexception</link><description>Hi All, 
 
 I am getting error in below expression 
 a!localVariables( local!userName: &amp;quot;xyzUser&amp;quot;, if( isusernametaken(local!userName), a!isUserMemberOfGroup(local!userName, cons!PP_GROUP_CONSTANT), 0 ) ) 
 Error as 
 Expression evaluation error at function</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97586?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 06:59:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f8a9e55-68fd-4d3a-87f7-f09d985da0db</guid><dc:creator>Priyanka!</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Please check below code screenshot. its Appian 21.4.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1657609170950v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97584?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 06:27:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:efa9971d-3aed-4520-84be-fd6377fd15df</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I just did a small test to verify this. isusernametaken() returns true, regardless of whether the user is deactivated or not. a!isUserMemberOfGroup() returns an error for any deactivated user.&lt;/p&gt;
&lt;p&gt;Appian 22.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97580?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 04:54:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f48cd40-33b3-411a-973d-2853c0a63b8c</guid><dc:creator>Priyanka!</dc:creator><description>&lt;p&gt;Thanks Peter. Will check on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97569?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 16:46:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6edc8753-3e82-4d2e-bd55-7ba4313146dc</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;If you&amp;#39;re seeing exactly the same expression behave differently in different environments then I would suggest opening a support ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97566?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 16:20:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28c98c39-2a44-4d70-b4fa-cad452bbbed9</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;I think it is untrue. It works equally well for a deactivated user as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97565?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 15:38:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:773c3cf4-e70d-4569-a3af-72fec5e87072</guid><dc:creator>Priyanka!</dc:creator><description>&lt;p&gt;Thanks for reply. Tried this, its still not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97564?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 15:32:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e04f7c6-335c-40de-b0e4-0a786db369e6</guid><dc:creator>Priyanka!</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Thanks for reply.. but this function is working properly in one of the environment with deactivate user as well and not in other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97563?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 15:28:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eeaa924-6541-435e-9cff-347235c43a07</guid><dc:creator>Priyanka!</dc:creator><description>&lt;p&gt;its 21.4 on both environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97562?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 14:21:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da8bd07d-bf35-46c2-af05-3b9eb7919028</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Even a deactivated user will return true for isusernametaken(). But&amp;nbsp;a!isUserMemberOfGroup() will fail on that exact user. To check whether a user is deactivated, you will need to user the function isuseractive() out of the people functions plugin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97559?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 12:28:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e3123b8-c611-411c-a21c-6d63ac5df319</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it is a&amp;nbsp;version issue. What Appian version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!isUserMemberOfGroup throwing InvalidUserException</title><link>https://community.appian.com/thread/97557?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 11:46:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:698502d5-0604-474f-83d1-f71197ef4adf</guid><dc:creator>TonyMiamiFL</dc:creator><description>&lt;p&gt;I believe that you need to pass the User as a type User by :&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;touser(local!userName)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>