<?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>Does user belong to groups</title><link>https://community.appian.com/discussions/f/plug-ins/9827/does-user-belong-to-groups</link><description>Hi, we used the function doesuserbelongstogroup on 1 of our production environment, but due to an error we don&amp;#39;t have this function on our other production environment, does anyone remember and can insert the link to the shared component that include</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Does user belong to groups</title><link>https://community.appian.com/thread/45657?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 06:45:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:deb78179-71bc-4603-bbb5-f9a145d5f5d4</guid><dc:creator>harshav</dc:creator><description>Try passing that from a constant, like call that group in a constant and call that constant here so that there will be no need to even doing the null check , and as the practitioners said this error is not due to the user doesn&amp;amp;#x27;t belong to that group it is due to the group parameter&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does user belong to groups</title><link>https://community.appian.com/thread/45656?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 06:16:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e98cbb13-a165-4636-bf0c-e57a0f772c59</guid><dc:creator>chandu</dc:creator><description>Please have a null check on getgroupbyname(&amp;quot;P2P_Pay_Invoice_Admin&amp;quot;),&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does user belong to groups</title><link>https://community.appian.com/thread/45651?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 05:16:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1877546-f73e-46ff-8863-1f25dbf0475a</guid><dc:creator>amanit</dc:creator><description>&lt;a href="/members/garym"&gt;garym&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
The above mentioned error is telling there is some problem with the group Name. As per my understanding there is no group with name &amp;quot;P2P_Pay_Invoice_Admin&amp;quot; so its throwing that error.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does user belong to groups</title><link>https://community.appian.com/thread/45647?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 22:39:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:893c633a-a2d6-44ff-b497-a026f464825e</guid><dc:creator>garym</dc:creator><description>When I use the isusermemberofgroups function and the user is not a member of the group, it doesn&amp;amp;#x27;t return false, it just errors out.  Has anyone experienced this as well?&lt;br /&gt;
&lt;br /&gt;
Details:  ERROR:An error occurred while evaluating expression: auReviewer_cdt.reviewer_usr:if(isusermemberofgroup(tp!owner,getgroupbyname(&amp;quot;P2P_Pay_Invoice_Admin&amp;quot;)),pv!auReviewer_cdt.reviewer_usr,tp!owner) (Expression evaluation error at function &amp;amp;#x27;isusermemberofgroup&amp;amp;#x27;: Error evaluating function &amp;amp;#x27;isusermemberofgroup&amp;amp;#x27; : Invalid null group ID argument.) (Data Outputs)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does user belong to groups</title><link>https://community.appian.com/thread/43343?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 10:55:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74a0d16a-51b8-4e43-8fae-65ffe57bda52</guid><dc:creator>marcoc918</dc:creator><description>ok,&lt;br /&gt;&lt;br /&gt;I have read and tested the function isusermemberofgroups and for other project I use it, so probably is better to substitute it with this function&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does user belong to groups</title><link>https://community.appian.com/thread/43339?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 08:26:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad1a56af-5313-4bed-a8f4-5a339df8d3b4</guid><dc:creator>Eduardo Fuentes</dc:creator><description>The plug-in recommended by the user in the comment above NO LONGER has that function. I removed it from my plug-in because the out of the box function&lt;a href="https://docs.appian.com/suite/help/17.1/Scripting_Functions.html#isusermemberofgroup.28.29"&gt;docs.appian.com/.../Scripting_Functions.html&lt;/a&gt; function matched the desired behavior so there was no need to keep maintaining something custom. I suggest you use that one instead.&lt;br /&gt;&lt;br /&gt;The People Functions has something similar called isusermemberofgroups &lt;a href="https://forum.appian.com/suite/tempo/records/item/lEBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUjQmDVAkIm__lAhyaCbv8mcYbyRE-4wU/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt; if you wanted to do the check for multiple groups.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does user belong to groups</title><link>https://community.appian.com/thread/43338?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 06:44:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:913c38cb-86ee-4eb8-9001-15d515517655</guid><dc:creator>sowjanyav430</dc:creator><description>@Marcoc..&lt;br /&gt;Please find the below link to the shared component that include doesuserbelongstogroup function.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lIBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUjO5E6eO2UZ1tJnDqkswaubvz8gUllGhG/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>