<?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>Hi  How can I retrieve a logged in user&amp;#39;s group id in a process if</title><link>https://community.appian.com/discussions/f/rules/1353/hi-how-can-i-retrieve-a-logged-in-user-s-group-id-in-a-process-if</link><description>Hi How can I retrieve a logged in user&amp;#39;s group id in a process if the user has been added to a group initially via the people tab?... OriginalPostID-85340 OriginalPostID-85340</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi  How can I retrieve a logged in user's group id in a process if</title><link>https://community.appian.com/thread/53827?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 11:09:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef77cfd9-04f9-4c94-991f-ff9de2e6abad</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>RI Array: ri!userBelongsToTheseGroups in following code will give you list of desired groups.&lt;br /&gt;
&lt;br /&gt;
a!forEach(&lt;br /&gt;
  items: ri!listOfGroups,&lt;br /&gt;
  expression: if(&lt;br /&gt;
      isusermemberofgroup(ri!userName, group(fv!item, &amp;quot;id&amp;quot;)),&lt;br /&gt;
      a!save(ri!userBelongsToTheseGroups, fv!item),&lt;br /&gt;
      {}&lt;br /&gt;
    )&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi  How can I retrieve a logged in user's group id in a process if</title><link>https://community.appian.com/thread/53290?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 17:35:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e90e142b-0e60-4617-9835-45c2ab50309c</guid><dc:creator>Robert Shankin</dc:creator><description>I agree with Michael and Aswin on how to get this done.&lt;br /&gt;
&lt;br /&gt;
However, I would recommend a proactive approach to managing group membership that empowers you to avoid this to the greatest extent possible.  This operation demands a lot of performance.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi  How can I retrieve a logged in user's group id in a process if</title><link>https://community.appian.com/thread/53280?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 16:14:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b492b2df-fd3d-4b41-ae42-d40565c7aa26</guid><dc:creator>aswinb608</dc:creator><description>first you can check if the user is part of a particular group using the function isusermemberofgroup(loggedInUser(), cons!GROUP_NAME)&lt;br /&gt;
you can use the group() function....group(cons!GROUP_NAME, &amp;quot;id&amp;quot;). to retrieve the id&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi  How can I retrieve a logged in user's group id in a process if</title><link>https://community.appian.com/thread/53272?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 12:13:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a39a283b-ea96-4f52-afc7-54a00b932d89</guid><dc:creator>chandrasekharm0001</dc:creator><description>Hi Michael,&lt;br /&gt;
                  If user has been assigned to more than  5 groups, &lt;br /&gt;
assume &lt;br /&gt;
1) Italy &lt;br /&gt;
2) France &lt;br /&gt;
3)SuperAdmin &lt;br /&gt;
4)SupportAdmin&lt;br /&gt;
 5)CentralTeam(Parent Group for 1,2).&lt;br /&gt;
   How can I validate and get Group ID of user whether he belongs to group1 or group 2.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi&lt;br /&gt;&lt;br /&gt;How can I retrieve a logged in user's group id in a process if</title><link>https://community.appian.com/thread/4708?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2013 15:55:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fd13749-dca3-4fd2-ac4f-a7775721d431</guid><dc:creator>Michael Tan</dc:creator><description>Hi Lincoln,&lt;br /&gt;Take a look at the People Functions - Plug-in available in Shared Components. You can retrieve all of the groups a user is a member of using the getgroupsformemberuser function included in that plug-in.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>