<?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: Rest : update person problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-update-person-problem/m-p/307211#M260341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i look in alfresco webscript person.put.json.js and i can see that googleusername is not present and persondescription is d:content type and not d:text so i made my webscript, it is the same of alfresco one, but i have add update for googleusername property &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (!json.isNull("googleusername")) &lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp;&amp;nbsp; person.properties["googleusername"] = json.get("googleusername"); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i have fix update for persondescription,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;before &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (!json.isNull("persondescription")) &lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp;&amp;nbsp; person.properties["persondescription"] = json.get("persondescription"); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;replace with&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (!json.isNull("persondescription")) &lt;BR /&gt;&amp;nbsp;&amp;nbsp; { &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; person.properties["cm:persondescription"].content = json.get("persondescription"); &lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I deployed my webscript on alfresco and i call this one, it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use Alfresco Community v4.2.0 and i just start with alfresco, so for my research to fix my problem i can see another way to update user. Share dont use person.put.json.js for update user but slingshot/person/userprofile.post.json.js and this one works good. I found it in debug mode on alfresco when using share, nothing in documentation but there are all webscript to update user, avatar or status.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 22:15:00 GMT</pubDate>
    <dc:creator>dfr</dc:creator>
    <dc:date>2013-05-16T22:15:00Z</dc:date>
    <item>
      <title>Rest : update person problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-update-person-problem/m-p/307210#M260340</link>
      <description>hello,I try to use PUT : /api/people/{userName} for update a user.I'm use this API in a webscript in a spring surf application with remote call.I use this code :tmpUser = {};tmpUser.firstName = objFrm.firstName;tmpUser.lastName = objFrm.lastName;tmpUser.email = objFrm.email;tmpUser.telephone = objFr</description>
      <pubDate>Fri, 10 May 2013 11:30:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-update-person-problem/m-p/307210#M260340</guid>
      <dc:creator>dfr</dc:creator>
      <dc:date>2013-05-10T11:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rest : update person problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-update-person-problem/m-p/307211#M260341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i look in alfresco webscript person.put.json.js and i can see that googleusername is not present and persondescription is d:content type and not d:text so i made my webscript, it is the same of alfresco one, but i have add update for googleusername property &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (!json.isNull("googleusername")) &lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp;&amp;nbsp; person.properties["googleusername"] = json.get("googleusername"); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i have fix update for persondescription,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;before &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (!json.isNull("persondescription")) &lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp;&amp;nbsp; person.properties["persondescription"] = json.get("persondescription"); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;replace with&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if (!json.isNull("persondescription")) &lt;BR /&gt;&amp;nbsp;&amp;nbsp; { &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; person.properties["cm:persondescription"].content = json.get("persondescription"); &lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I deployed my webscript on alfresco and i call this one, it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use Alfresco Community v4.2.0 and i just start with alfresco, so for my research to fix my problem i can see another way to update user. Share dont use person.put.json.js for update user but slingshot/person/userprofile.post.json.js and this one works good. I found it in debug mode on alfresco when using share, nothing in documentation but there are all webscript to update user, avatar or status.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 22:15:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-update-person-problem/m-p/307211#M260341</guid>
      <dc:creator>dfr</dc:creator>
      <dc:date>2013-05-16T22:15:00Z</dc:date>
    </item>
  </channel>
</rss>

