<?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 change ownership while document is uploaded in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290710#M243840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In order to change the owner of a document you just need to create a script having below given code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setOwner&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"NewOwnerId"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;save&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍&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;P&gt;&lt;/P&gt;&lt;P&gt;You can execute this script by creating rule on a folder&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if you have any further query with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kalpesh&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com/" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2016 08:23:00 GMT</pubDate>
    <dc:creator>kalpesh_c2</dc:creator>
    <dc:date>2016-11-25T08:23:00Z</dc:date>
    <item>
      <title>How to change ownership while document is uploaded</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290709#M243839</link>
      <description>We need to change the ownership of the document when it get's uploaded into a folder, as it goes through a workflow where on approval, it is moved to a different folder in which the uploader has only consumer rights. Currently the documents are allowed to be deleted as the uploader is still the owne</description>
      <pubDate>Fri, 25 Nov 2016 05:29:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290709#M243839</guid>
      <dc:creator>tallraj</dc:creator>
      <dc:date>2016-11-25T05:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change ownership while document is uploaded</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290710#M243840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In order to change the owner of a document you just need to create a script having below given code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setOwner&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"NewOwnerId"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;save&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍&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;P&gt;&lt;/P&gt;&lt;P&gt;You can execute this script by creating rule on a folder&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if you have any further query with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kalpesh&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com/" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 08:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290710#M243840</guid>
      <dc:creator>kalpesh_c2</dc:creator>
      <dc:date>2016-11-25T08:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change ownership while document is uploaded</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290711#M243841</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;Thank you - will check this and revert back &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajagopal G &lt;/P&gt;&lt;P&gt;Software Consultant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 09:06:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290711#M243841</guid>
      <dc:creator>tallraj</dc:creator>
      <dc:date>2016-11-25T09:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change ownership while document is uploaded</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290712#M243842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked for us - thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 10:26:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290712#M243842</guid>
      <dc:creator>tallraj</dc:creator>
      <dc:date>2016-11-25T10:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change ownership while document is uploaded</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290713#M243843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; background-color: transparent; text-decoration: none;"&gt;I wanted to Prevent Creators of Documents from Deleting Their Own Document. Can you please elaborate your answer? It will be helpful for me. Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; background-color: transparent; text-decoration: none;"&gt;-Mayuri&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:06:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-ownership-while-document-is-uploaded/m-p/290713#M243843</guid>
      <dc:creator>smayuri</dc:creator>
      <dc:date>2018-08-01T07:06:04Z</dc:date>
    </item>
  </channel>
</rss>

