<?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>How to separate out Users and Group which are part of one Main Group in ER</title><link>https://community.appian.com/discussions/f/new-to-appian/26125/how-to-separate-out-users-and-group-which-are-part-of-one-main-group-in-er</link><description>Hi @all, 
 
 Is there an easy way to separate out users and groups from a Main Group in an expression rule. 
 
 Below are the users and groups coming from a group itself. I want to separate out users from this list and wants to store it. 
 
 Looking forward</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to separate out Users and Group which are part of one Main Group in ER</title><link>https://community.appian.com/thread/102393?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 17:48:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b5f115d-ead6-4ac7-9a81-92495020b67a</guid><dc:creator>maryl0003</dc:creator><description>&lt;p&gt;Thank you @Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to separate out Users and Group which are part of one Main Group in ER</title><link>https://community.appian.com/thread/102392?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 17:47:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eee99f0-935d-4945-8088-6f1b5e4a5c29</guid><dc:creator>maryl0003</dc:creator><description>&lt;p&gt;Thanks @Harshit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to separate out Users and Group which are part of one Main Group in ER</title><link>https://community.appian.com/thread/102391?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 17:29:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f23054ac-08ff-4430-a68b-9a82874f0d04</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Yes, &lt;a href="https://docs.appian.com/suite/help/22.3/fnc_people_a_groupmembers.html"&gt;a!groupMembers()&lt;/a&gt; can return only the list of direct, user type members in a group such as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!groupMembers(
  group: cons!YOUR_GROUP_CONSTANT,
  direct: true,
  memberType: &amp;quot;USER&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to separate out Users and Group which are part of one Main Group in ER</title><link>https://community.appian.com/thread/102390?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 17:28:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2793edcc-8078-439c-b731-8b9bf8a645a2</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;I think you can convert them into a string and then use the isusernametaken() function. If it returns true, then it is a user else it is a group.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>