<?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>Need to dump Appian User and related Group info into DB</title><link>https://community.appian.com/discussions/f/general/13235/need-to-dump-appian-user-and-related-group-info-into-db</link><description>Any suggestion on designing the process of dumping all user id and associated Groups in Database. 
 
 We have some requirement to expose this data to end user via Database.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need to dump Appian User and related Group info into DB</title><link>https://community.appian.com/thread/59764?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 06:54:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b27494e-7e9a-40f2-91a6-4e3d5124c910</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Hi Piyush Agarwal,&lt;/p&gt;
&lt;p&gt;My idea is to write all the user details to DB in single call(Delete/archive the process immediately). I feel the below code with modifications will work.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;load(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;local!Users:getgroupmemberuserspaging(cons!APN_ALL_USERS),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;local!Users,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;a!forEach(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp;items:local!Users,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp;expression:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp;&amp;#39;type!{urn:com:nbnco:types:test}test_users&amp;#39;(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp;id:ri!users.id,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp;groupId:&amp;#39;type!{urn:com:nbnco:types:test}test_groups&amp;#39;(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;id:ri!groups.id,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;groupId:getgroupsformemberuser(fv!item)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Siva Chimata&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to dump Appian User and related Group info into DB</title><link>https://community.appian.com/thread/59745?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 19:15:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3832bd0a-6af1-4136-9ab4-0572cca2a57c</guid><dc:creator>Colton Beck</dc:creator><description>&lt;p&gt;Yes, performance is always a concern with these types of activities. I recommend designing your model to batch these activities at a reasonable number of iterations and wait for the previous batch to complete before executing the next one. You should also leverage the &lt;a href="https://docs.appian.com/suite/help/18.3/Start_Process_Smart_Service.html"&gt;Start Process&lt;/a&gt; smart service to ensure that requests are properly load balanced.&lt;/p&gt;
&lt;p&gt;Finally, you can get around Appian&amp;#39;s 1,000 node instance limit by checking the &amp;#39;Delete previously cancelled/completed instances&amp;#39; selection in the relevant nodes&amp;#39; &lt;a href="https://docs.appian.com/suite/help/18.3/Process_Node_and_Smart_Service_Properties.html#other-tab"&gt;Other&lt;/a&gt; tabs. Keep in mind that this limit is in place for a reason, so be sure that your process is performant before making this change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to dump Appian User and related Group info into DB</title><link>https://community.appian.com/thread/59744?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 19:09:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e459fff-3e0c-4b9e-9f24-74771aace429</guid><dc:creator>Piyush Agarwal</dc:creator><description>issue is with iteration on number of user. If we have 10000 users then we need check all constraints Appian has with number of iteration.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to dump Appian User and related Group info into DB</title><link>https://community.appian.com/thread/59743?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 18:59:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61081839-3bf5-4ce1-95fa-2c7f768eb0e6</guid><dc:creator>Colton Beck</dc:creator><description>&lt;p&gt;Alternatively, you could leverage the getgroupsformemberuser() function from the &lt;a href="/b/appmarket/posts/people-functions---plug-in"&gt;People Functions&lt;/a&gt;&amp;nbsp;plugin, which may make your dataset cleaner, given you want groups by user, instead of users by group.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to dump Appian User and related Group info into DB</title><link>https://community.appian.com/thread/59741?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 18:48:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:395d5d9f-1696-4a2b-a800-1263b179758f</guid><dc:creator>Colton Beck</dc:creator><description>&lt;p&gt;If the user and group data is stored in the database, you can create a simple process to dump the data to an Excel file using the &lt;a href="https://docs.appian.com/suite/help/18.2/Export_To_Excel_Smart_Service.html"&gt;Export Data Store Entity to Excel&lt;/a&gt; smart service or one of the smart services available in the &lt;a href="/b/appmarket/posts/excel-tools"&gt;Excel Tools&lt;/a&gt; plugin, depending on what Appian version you&amp;#39;re running.&lt;/p&gt;
&lt;p&gt;If the user and group data is not already stored in the database and you want to store it there, you could create a process that leverages the &lt;a href="https://docs.appian.com/suite/help/18.3/fnc_people_getdistinctusers.html"&gt;getdistinctusers()&lt;/a&gt; function. You could have this function loop over each group in your application to retrieve its users, and then call the &lt;a href="https://docs.appian.com/suite/help/18.3/fnc_people_user.html"&gt;user()&lt;/a&gt; function on each of them to get the required metadata of the user. Then once you have the data in the format you want, you could write it to the database.&lt;/p&gt;
&lt;p&gt;Does this help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>