<?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: Changing owner at node creation caused issue while adding records in governance services in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/changing-owner-at-node-creation-caused-issue-while-adding/m-p/132955#M35828</link>
    <description>&lt;P&gt;Try With runas system or admin.&lt;/P&gt;&lt;PRE&gt;      AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork&amp;lt;Void&amp;gt;() {
						public Void doWork() {
							return null;
						}
					}, AuthenticationUtil.getSystemUserName());&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Sep 2021 03:08:00 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2021-09-13T03:08:00Z</dc:date>
    <item>
      <title>Changing owner at node creation caused issue while adding records in governance services</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-owner-at-node-creation-caused-issue-while-adding/m-p/132954#M35827</link>
      <description>&lt;P&gt;In ACS 6.2 I have created a policy &lt;STRONG&gt;onAddCocument&lt;/STRONG&gt; to change the owner of the document when uploaded. It is working fine in ACS.&lt;/P&gt;&lt;P&gt;This policy caused issue while I deployed the governance services and tried to create a record by uploading a file.&lt;/P&gt;&lt;P&gt;It threw error message&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: org.alfresco.repo.security.permissions.AccessDeniedException: 07270043 Access Denied. You do not have the appropriate permissions to perform this operation.&lt;/PRE&gt;&lt;P&gt;in the logs pointing the code where the following line is written:&lt;/P&gt;&lt;PRE&gt;serviceRegistry.getOwnableService().setOwner(nodeRef, "admin");&lt;/PRE&gt;&lt;P&gt;Please, let me know if there is any clue on this.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 11:23:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-owner-at-node-creation-caused-issue-while-adding/m-p/132954#M35827</guid>
      <dc:creator>kintu_barot</dc:creator>
      <dc:date>2021-09-01T11:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing owner at node creation caused issue while adding records in governance services</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-owner-at-node-creation-caused-issue-while-adding/m-p/132955#M35828</link>
      <description>&lt;P&gt;Try With runas system or admin.&lt;/P&gt;&lt;PRE&gt;      AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork&amp;lt;Void&amp;gt;() {
						public Void doWork() {
							return null;
						}
					}, AuthenticationUtil.getSystemUserName());&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 03:08:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-owner-at-node-creation-caused-issue-while-adding/m-p/132955#M35828</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-09-13T03:08:00Z</dc:date>
    </item>
  </channel>
</rss>

