<?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 Re: How to update email ids of users automatically in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296587#M249717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Upload file contains usernames and email id with some name for example: usesMailIds.csv&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;file contains username and mailId with comma separate in each line, example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;user1,&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:user1@abc.com" rel="nofollow noopener noreferrer"&gt;user1@abc.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;user2,&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:user2@abc.com" rel="nofollow noopener noreferrer"&gt;user2@abc.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;user3,&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:user3@abc.com" rel="nofollow noopener noreferrer"&gt;user3@abc.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in Javascript search for that file, then read content line by line and update the usermail as you are doing for single user.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 10:24:31 GMT</pubDate>
    <dc:creator>lementree</dc:creator>
    <dc:date>2014-05-19T10:24:31Z</dc:date>
    <item>
      <title>How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296583#M249713</link>
      <description>I am creating user using Windows Active directory. The user is able to login without any problem. However he needs to update the email buy himself. Is there any way to automatically update the users email id from a text file or xls file based on his user name?</description>
      <pubDate>Thu, 08 May 2014 06:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296583#M249713</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-05-08T06:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296584#M249714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can write a schedular that runs periodically (calling your java code) to update the users email id from text, csv or xls file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Scheduled_Actions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Scheduled_Actions&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 11:21:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296584#M249714</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-05-08T11:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296585#M249715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have zero knowledge on java script&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 05:44:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296585#M249715</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-05-09T05:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296586#M249716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to do for individual user using this script &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var gens = search.luceneSearch("TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}person\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}person\&lt;/A&gt;"");&lt;BR /&gt;var index;&lt;BR /&gt;for(index=0;index&amp;lt;gens.length;++index)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(gens[index].properties["cm:userName"]=="nazeers")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gens[index].properties["email"]="sameer@gmail.com";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gens[index].save();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how to do for all users ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 09:52:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296586#M249716</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-05-19T09:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296587#M249717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Upload file contains usernames and email id with some name for example: usesMailIds.csv&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;file contains username and mailId with comma separate in each line, example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;user1,&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:user1@abc.com" rel="nofollow noopener noreferrer"&gt;user1@abc.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;user2,&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:user2@abc.com" rel="nofollow noopener noreferrer"&gt;user2@abc.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;user3,&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:user3@abc.com" rel="nofollow noopener noreferrer"&gt;user3@abc.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in Javascript search for that file, then read content line by line and update the usermail as you are doing for single user.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296587#M249717</guid>
      <dc:creator>lementree</dc:creator>
      <dc:date>2014-05-19T10:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296588#M249718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;var a = new XMLHttpRequest(); I am getting error that XMLHttpRequest is not defined. How to read the file in javascrupt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 11:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296588#M249718</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-05-19T11:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296589#M249719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; var doc = search.luceneSearch('@cm\\:name:"usersMails.csv"')[0];&lt;BR /&gt; var docText = doc.content;&lt;BR /&gt; var lines = docText.split("\n");&lt;BR /&gt; for(var i=0; i&amp;lt;lines.length; i++){&lt;BR /&gt;&amp;nbsp; var userMailId = lines[i].split(",");&lt;BR /&gt;&amp;nbsp; var userName = userMailId[0];&lt;BR /&gt;&amp;nbsp; var mailId = userMailId[1];&lt;BR /&gt;&amp;nbsp; var user = people.getPerson(userName);&lt;BR /&gt;&amp;nbsp; user.properties["email"]=mailId;&lt;BR /&gt;&amp;nbsp; user.save();&lt;BR /&gt; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 12:44:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296589#M249719</guid>
      <dc:creator>lementree</dc:creator>
      <dc:date>2014-05-19T12:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to update email ids of users automatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296590#M249720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks that did the work&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 13:56:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-email-ids-of-users-automatically/m-p/296590#M249720</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-05-19T13:56:40Z</dc:date>
    </item>
  </channel>
</rss>

