<?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>Add users from group to table</title><link>https://community.appian.com/discussions/f/general/20678/add-users-from-group-to-table</link><description>Hi, 
 How to add users from groups in frontend to DB table? 
 Thanks, 
 Anandita</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Add users from group to table</title><link>https://community.appian.com/thread/80574?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 20:30:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:777058e8-faad-464c-b649-0655c9bfff44</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;We do this with a nightly scheduled process for group association auditing.&amp;nbsp; The process collects all groups, minus those groups added to a constant which are skipped (example, groups set to include all users in the system).&amp;nbsp; We use the &lt;a href="/b/appmarket/posts/people-functions---plug-in"&gt;People Functions&lt;/a&gt; plugin&amp;#39;s getallgroups() function, but you likely can&amp;nbsp;use an OOTB function such as a!groupsByType(2,a!pagingInfo(1,-1)).&amp;nbsp; You would then run a sub process over each of the groups (note you will be restricted to 1000 groups unless looping is applied), which retrieves members using a!groupMembers.&amp;nbsp; Save the details to a CDT, utilize the Write to DataStore node to persist the details.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note you will want to consider performance here if you have a high group list or high member counts.&amp;nbsp; For that reason (and the 1000 max sub process call MNI) we do this with fn!executeStoredProcedure which runs over 1,530 groups in less than a minute.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>