<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add 100000 Users to Group in Alfresco in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-100000-users-to-group-in-alfresco/m-p/19949#M8838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are&amp;nbsp;using Alfresco 5 version. I've an users more that 100,000 users in Alfresco . Now my requirement is I've to add all users to two groups called 'Group1' &amp;amp; 'Group2'. I tried by Javascript api , but it taking so much time &amp;amp; impacting performance of application.&lt;/P&gt;&lt;P&gt;Can you please suggest easiest way to add huge amount of users into Groups without impacting performance of application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Postgres as DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DSR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2017 07:08:03 GMT</pubDate>
    <dc:creator>dsr471</dc:creator>
    <dc:date>2017-11-13T07:08:03Z</dc:date>
    <item>
      <title>How to add 100000 Users to Group in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-100000-users-to-group-in-alfresco/m-p/19949#M8838</link>
      <description>Hi,We are&amp;nbsp;using Alfresco 5 version. I've an users more that 100,000 users in Alfresco . Now my requirement is I've to add all users to two groups called 'Group1' &amp;amp; 'Group2'. I tried by Javascript api , but it taking so much time &amp;amp; impacting performance of application.Can you please suggest e</description>
      <pubDate>Mon, 13 Nov 2017 07:08:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-100000-users-to-group-in-alfresco/m-p/19949#M8838</guid>
      <dc:creator>dsr471</dc:creator>
      <dc:date>2017-11-13T07:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 100000 Users to Group in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-add-100000-users-to-group-in-alfresco/m-p/19950#M8839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ehm - are you really sure you want to add 100.000 users directly to a group? Are there no abstract groups which you could use to build a hierarchy, avoiding the 100.000 members case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, you will need to do Java-based batch processing, only adding a sub-set of the users per iteration. Adding 100.000 to one group in one go simply overwhelms all assumptions made when Alfresco core services were implemented... A batch of 25-50 should be a reasonable number. Using default cache configurations, I would not want to push it over (100 - #activeUsers), or risk performance issues due to transactional cache being full and triggering global cache clearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, I want to reiterate that you should consider if that is really the best way to go about your use case, and if you could not realise it in a different way. I personally would not add 100.000 users to a group. Such a case would warrant some small customisation within Alfresco to create a "virtual" group which does not really exist in the database, but is injected in a users list of authorities by applying the same rule you use to assign the users to group 1 or 2 (or both).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 18:59:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-add-100000-users-to-group-in-alfresco/m-p/19950#M8839</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-11-13T18:59:59Z</dc:date>
    </item>
  </channel>
</rss>

