<?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 Alfresco User Profile Sync with xternal application in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-user-profile-sync-with-xternal-application/m-p/288364#M241494</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;We have one authentication subsystem outside of alfresco and once user is validated through that we system they are redirected to alfresco and we create the user in alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Our requirement is if user edit his profile like first name,last name, job profile etc then it has to be updated in alfresco as well as in the out side authentication sub system as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The outside authentication subsystem provides the web service for updating the profile,could you please let us know the best approach to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to call the web service from the js file like below but the connection is not established.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 1) Create a endpoint in share config custom file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoint&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;my-endpoint&amp;lt;/id&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connector-id&amp;gt;http&amp;lt;/connector-id&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoint-url&amp;gt;my end point url&amp;lt;/endpoint-url&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;identity&amp;gt;user&amp;lt;/identity&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/endpoint&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) In the js file tried to call the webscrvice&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var connector = remote.connect("my-endpoint"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result1 = connector.put("/api/url/",jsonUtils.toJSONString(paramsUpdate), &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "application/json"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let us know the best approach to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sabinay&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 06:02:56 GMT</pubDate>
    <dc:creator>sabinay</dc:creator>
    <dc:date>2015-06-30T06:02:56Z</dc:date>
    <item>
      <title>Alfresco User Profile Sync with xternal application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-user-profile-sync-with-xternal-application/m-p/288364#M241494</link>
      <description>Hi,We have one authentication subsystem outside of alfresco and once user is validated through that we system they are redirected to alfresco and we create the user in alfresco.Our requirement is if user edit his profile like first name,last name, job profile etc then it has to be updated in alfresc</description>
      <pubDate>Tue, 30 Jun 2015 06:02:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-user-profile-sync-with-xternal-application/m-p/288364#M241494</guid>
      <dc:creator>sabinay</dc:creator>
      <dc:date>2015-06-30T06:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco User Profile Sync with xternal application</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-user-profile-sync-with-xternal-application/m-p/288365#M241495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sabinay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco is split into two main applications, Alfresco (the repository) and Share (the user interface).&amp;nbsp; Generally it is better to try and keep that split doing only user interface extensions in Share and doing any custom business logic/content operations as Alfresco extensions.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your snippet above it would seem that you're looking at catching the event in Share and then trying to get Share to call your external service, which doesn't really meet this pattern.&amp;nbsp; Alfresco.war has generally nicer and more maintainable patterns for these types of extensions and can be made in a more maintainable/upgradable way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There could be many ways to accomplish this but I would suggest that you look at using a Behaviour to capture the change and call the logic you want to from there.&amp;nbsp; You'll have access to call a HTTP client directly from the behaviour's code and should be a lot easier to debug and unit test.&amp;nbsp; You can see examples of how to create a behaviour here: &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:21:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-user-profile-sync-with-xternal-application/m-p/288365#M241495</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2015-08-07T16:21:12Z</dc:date>
    </item>
  </channel>
</rss>

