<?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>Finding User Group from Username</title><link>https://community.appian.com/discussions/f/general/13405/finding-user-group-from-username</link><description>Hello , 
 
 Is there any function or a smart service which will help me finding the user&amp;#39;s group names by just passing the user as a parameter ? 
 Please advice. 
 
 Thanks, 
 Rohit Ovhal</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60805?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 05:42:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62176bf3-c802-43a1-9248-c445407fb713</guid><dc:creator>Dastagiri Dudekula</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;getgroupsformemberuser(loggedInUser())&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60793?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 04:11:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:326b4393-71f1-499d-818c-09b5889cc508</guid><dc:creator>ravir0001</dc:creator><description>Hi Rohit !&lt;br /&gt;
&lt;br /&gt;
I think you can also use fn!getDirectGroupMemberUsersPaging() to get the direct members . It may take more time as the number of users may be huge in numbers. &lt;br /&gt;
&lt;br /&gt;
contains(&lt;br /&gt;
touniformstring(&lt;br /&gt;
fn!getdirectgroupmemberuserspaging(&lt;br /&gt;
getgroupbyname(ri!groupName),&lt;br /&gt;
0,&lt;br /&gt;
- 1&lt;br /&gt;
)&lt;br /&gt;
),&lt;br /&gt;
ri!userName&lt;br /&gt;
))&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Ravi.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60792?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 03:54:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c025764-2f08-401e-89fa-8c7f8c63f75e</guid><dc:creator>aratim</dc:creator><description>Hi Rohit,&lt;br /&gt;
To achieve this you can use function getgroupsformemberuser(). &lt;br /&gt;
Hope this helps you.&lt;br /&gt;
Thanks.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60667?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 06:39:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03d2319a-5cb6-4a86-84f5-bd74474f9373</guid><dc:creator>ravalik</dc:creator><description>Hi rohitr,&lt;br /&gt;
&lt;br /&gt;
In order to solve your requirement use getgroupsformemberuser().&lt;br /&gt;
Hope this might  help you.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60666?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 06:35:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa8938ae-bc72-4336-8e94-a83b72a4c4da</guid><dc:creator>Vinod Naduvinamani</dc:creator><description>&lt;p&gt;Hi Rohit,&lt;/p&gt;
&lt;p&gt;Use&amp;nbsp;getgroupsformemberuser() to find out which group user belongs to&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;Vinod&lt;pre class="ui-code" data-mode="text"&gt;load(
local!a:&amp;quot;vinodn&amp;quot;,
local!b:getgroupsformemberuser(local!a),
local!b
)


OutPut:
	
FormattedRawExpression
 List of Group: 13 items
    949 -childGroup (Group)
    21 - All Users (Group)
    23 - Designers (Group)
    151 -All Users_GP (Group)
    158 - APN All Users (Group)
    939 - Admins (Group)
    948 - D All Users (Group)
    &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60665?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 06:33:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06688e1d-3c54-4a83-ab78-acfa4e66b94f</guid><dc:creator>vishnuv</dc:creator><description>Hi,&lt;br /&gt;
Use group(getgroupsformemberuser(ri!userName),&amp;quot;groupName&amp;quot;). Here, getgroupsformemberuser is a shared component that needs to downloaded.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60663?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 05:54:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff927894-1751-4314-b10f-4ecccf05b899</guid><dc:creator>Shiva Valusa</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Please use following plug-in for your requirement.&lt;br /&gt;
&lt;br /&gt;
&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;&lt;br /&gt;
&lt;br /&gt;
getgroupsformemberuser:&lt;br /&gt;
 Returns a list of all groups that a given user is a member of.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Finding User Group from Username</title><link>https://community.appian.com/thread/60650?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 18:34:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42cfa46d-235a-4704-aa6a-2df07dd42b58</guid><dc:creator>Mike Lasutschinkow</dc:creator><description>Function getgroupsformemberuser from PeopleFunctions v1.9 has this ability&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>