<?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-access get nodeRef, nodeid or nodeuuid in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127239#M34583</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;since I was not able to gather nodeRef (a), nodeid (b) or nodeuuid (c) from the database (&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/link-audit-log-entries-to-nodeids/m-p/311087" target="_self" rel="nofollow noopener noreferrer"&gt;thread&lt;/A&gt;) I opted to use the alfresco-access api.&amp;nbsp;I need to relate nodes to audit-log entries.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. But as far as I understand there is also no way to get a/b/c for every entry? This information is only stored for some entries. How can I get a/b/c for &lt;U&gt;every&lt;/U&gt;&amp;nbsp;existing audit-log entry?&lt;BR /&gt;&lt;BR /&gt;2. If there is absolutely no way to relate these items ootb. Can I modify the audit log so that the noderef is stored for every entry?&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;Muffex&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 12:41:26 GMT</pubDate>
    <dc:creator>Muffex</dc:creator>
    <dc:date>2022-01-28T12:41:26Z</dc:date>
    <item>
      <title>alfresco-access get nodeRef, nodeid or nodeuuid</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127239#M34583</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;since I was not able to gather nodeRef (a), nodeid (b) or nodeuuid (c) from the database (&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/link-audit-log-entries-to-nodeids/m-p/311087" target="_self" rel="nofollow noopener noreferrer"&gt;thread&lt;/A&gt;) I opted to use the alfresco-access api.&amp;nbsp;I need to relate nodes to audit-log entries.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. But as far as I understand there is also no way to get a/b/c for every entry? This information is only stored for some entries. How can I get a/b/c for &lt;U&gt;every&lt;/U&gt;&amp;nbsp;existing audit-log entry?&lt;BR /&gt;&lt;BR /&gt;2. If there is absolutely no way to relate these items ootb. Can I modify the audit log so that the noderef is stored for every entry?&lt;/P&gt;&lt;P&gt;regards&lt;BR /&gt;Muffex&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 12:41:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127239#M34583</guid>
      <dc:creator>Muffex</dc:creator>
      <dc:date>2022-01-28T12:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-access get nodeRef, nodeid or nodeuuid</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127240#M34584</link>
      <description>&lt;P&gt;You could override / replace Alfresco's default alfresco-audit-access.xml configuration (via WEB-INF/classes/alfresco/audit/ - AFAIK the extension classpath won't work as it would try to load a second alfresco-access audit application, running into an error with the already defined default application) to always record the node, since the node is actually always provided in the audit data generated by the producer - it is just not recorded via a RecordValue config.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 09:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127240#M34584</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2022-01-31T09:56:00Z</dc:date>
    </item>
    <item>
      <title>[NO SUBJECT]</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127241#M34585</link>
      <description />
      <pubDate>Mon, 31 Jan 2022 14:16:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127241#M34585</guid>
      <dc:creator>Muffex</dc:creator>
      <dc:date>2022-01-31T14:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-access get nodeRef, nodeid or nodeuuid</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127242#M34586</link>
      <description>&lt;P&gt;I have been able to realize a solution. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;BR /&gt;1. Create xml for a custom audit-application (c.f.&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/community/admin/audit/#auditconfig" target="_self" rel="nofollow noopener noreferrer"&gt;Audit Log Config)&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;Audit xmlns="http://www.alfresco.org/repo/audit/model/3.2"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.alfresco.org/repo/audit/model/3.2
    alfresco-audit-3.2.xsd"&amp;gt;

  &amp;lt;DataExtractors&amp;gt;
    &amp;lt;DataExtractor name="simpleValue"
        registeredName="auditModel.extractor.simpleValue"/&amp;gt;
  &amp;lt;/DataExtractors&amp;gt;

  &amp;lt;PathMappings&amp;gt;
    &amp;lt;PathMap source="/alfresco-access" target="/custom-audit" /&amp;gt;
  &amp;lt;/PathMappings&amp;gt;

  &amp;lt;Application name="custom-audit" key="custom-audit"&amp;gt;
    &amp;lt;RecordValue
        key="action" dataExtractor="simpleValue"
        dataSource="/custom-audit/transaction/action"
        dataTrigger="/custom-audit/transaction/action" /&amp;gt;
    &amp;lt;RecordValue
        key="sub-actions"
        dataExtractor="simpleValue"
        dataSource="/custom-audit/transaction/sub-actions"
        dataTrigger="/custom-audit/transaction/sub-actions" /&amp;gt;  
    &amp;lt;RecordValue
        key="user" dataExtractor="simpleValue"
        dataSource="/custom-audit/transaction/user"
        dataTrigger="/custom-audit/transaction/user" /&amp;gt;
    &amp;lt;RecordValue
        key="node"
        dataExtractor="simpleValue"
        dataSource="/custom-audit/transaction/node"
        dataTrigger="/custom-audit/transaction/node" /&amp;gt;  
    &amp;lt;RecordValue
        key="type" dataExtractor="simpleValue"
        dataSource="/custom-audit/transaction/type"
        dataTrigger="/custom-audit/transaction/type" /&amp;gt;  
    &amp;lt;RecordValue
        key="path" dataExtractor="simpleValue"
        dataSource="/custom-audit/transaction/path"
        dataTrigger="/custom-audit/transaction/path" /&amp;gt;
  &amp;lt;/Application&amp;gt;
&amp;lt;/Audit&amp;gt;&lt;/PRE&gt;&lt;P&gt;2.&amp;nbsp;Add xml-File to /usr/local/tomcat/shared/classes/alfresco/extension/audit/ on docker container (alfresco-ce-7_alfresco_1)&lt;/P&gt;&lt;P&gt;3. Restart Container&lt;/P&gt;&lt;P&gt;4. Access all the information you need (via curl:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://host:port/alfresco/service/api/audit/query/custom-audit?verbose=true" target="_blank" rel="noopener nofollow noreferrer"&gt;https://[host]:[port]/alfresco/service/api/audit/query/custom-audit?verbose=true&lt;/A&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;best&lt;BR /&gt;Muffex&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 17:59:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-access-get-noderef-nodeid-or-nodeuuid/m-p/127242#M34586</guid>
      <dc:creator>Muffex</dc:creator>
      <dc:date>2022-01-31T17:59:54Z</dc:date>
    </item>
  </channel>
</rss>

