<?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 labs3beta: javascript api - createPerson in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/labs3beta-javascript-api-createperson/m-p/171701#M124940</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;exploring the Labs-3.0beta, I've been trying the newly (awaited) added createPerson(username) from the Javascriopt API&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ScriptNode createPerson(String username)&lt;BR /&gt;Create a Person (cm:person) with the given user name. Returns the person node created or null if the user name already exists.&lt;SPAN class="line-numbers-rows"&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;SPAN&gt;How is this supposed to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var user = people.createPerson("jfoo");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user.properties["cm:firstName"] = "john";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user.properties["cm:lastName"] = "foo";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user.properties["usr&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;assword"] = "psw";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With this code, a user with "jfoo" as username is displayed, even though the other attributes are not set. It's possible to update the user properties from the web client, but not the password (message: "A system error happened during the operation: User name does not exist: jfoo"). Using people.getPerson("jfoo") doesn't change anything, while being a "cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson" object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I miss??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stéphane&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2008 10:59:10 GMT</pubDate>
    <dc:creator>stebans</dc:creator>
    <dc:date>2008-08-19T10:59:10Z</dc:date>
    <item>
      <title>labs3beta: javascript api - createPerson</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/labs3beta-javascript-api-createperson/m-p/171701#M124940</link>
      <description>Hi, exploring the Labs-3.0beta, I've been trying the newly (awaited) added createPerson(username) from the Javascriopt APIScriptNode createPerson(String username)Create a Person (cm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson) with the given user name. Returns the person node created or null if the user name already exists.‍‍How is thi</description>
      <pubDate>Tue, 19 Aug 2008 10:59:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/labs3beta-javascript-api-createperson/m-p/171701#M124940</guid>
      <dc:creator>stebans</dc:creator>
      <dc:date>2008-08-19T10:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: labs3beta: javascript api - createPerson</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/labs3beta-javascript-api-createperson/m-p/171702#M124941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stéphane,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;var user = people.createPerson("jfoo");&lt;BR /&gt;&lt;BR /&gt;With this code, a user with "jfoo" as username is displayed, even though the other attributes are not set.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you have to do a&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;user.save();&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;at the end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/person/people.post.json.js" rel="nofollow noopener noreferrer"&gt;http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/person/people.post.json.js&lt;/A&gt;&lt;SPAN&gt; for an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this what you were looking for?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jerico&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 19:34:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/labs3beta-javascript-api-createperson/m-p/171702#M124941</guid>
      <dc:creator>jerico_dev</dc:creator>
      <dc:date>2009-02-17T19:34:26Z</dc:date>
    </item>
  </channel>
</rss>

