<?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 can i capture the event of a user being added as part of an AD LDAP synch? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34598#M14607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Axel,&lt;/P&gt;&lt;P&gt;I hope this improves your day a LITTLE, but I am looking at the method:&lt;/P&gt;&lt;P&gt;recordAuditValuesWithUserFilter([rootpath],[map],[userfilterboolean])&lt;/P&gt;&lt;P&gt;After a few tests of setting that last param to false, it APPEARS to ignore the user filter in the global.properties file....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help again!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 21:56:04 GMT</pubDate>
    <dc:creator>dbiggins</dc:creator>
    <dc:date>2017-03-07T21:56:04Z</dc:date>
    <item>
      <title>how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34588#M14597</link>
      <description>I know that I can capture the event of a user being manually added to Alfresco though the Admin Tools page in Share by auditing for a PathMap source of "/alfresco-api/post/PersonService/createPerson".Users are typically added by an AD LDAP synchronization, however, and I can't see what event is bein</description>
      <pubDate>Wed, 01 Mar 2017 22:01:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34588#M14597</guid>
      <dc:creator>dbiggins</dc:creator>
      <dc:date>2017-03-01T22:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34589#M14598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same kind of API is also used during synchronisation, e.g. createPerson call is being made. Unfortunately, the person service is used in such a way that Auditing is circumvented in this use case (by using "personService" bean reference instead of "PersonService").&lt;/P&gt;&lt;P&gt;You could still react to the event of a person being created by using a policy which is unaffected by the choice of bean reference. A policy can be used to record your own data for Auditing. That is e.g. the way that alfresco-access works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 09:54:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34589#M14598</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-03-02T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34590#M14599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Axel,&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;I will a pursue behavior / policy mod that logs the event of an account being created.&lt;/P&gt;&lt;P&gt;Thanks also for the heads-up on the alfresco-access audit application: I will try to see how they are writing to the audit trail, as it would be ideal to have all of the audited events in one location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 14:58:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34590#M14599</guid>
      <dc:creator>dbiggins</dc:creator>
      <dc:date>2017-03-02T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34591#M14600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Axel,&lt;/P&gt;&lt;P&gt;I have created a policy that identifies when people (ContentModel.TYPE_PERSON) are created (overriding OnCreateNodePolicy.onCreateNode), and that works fine.&lt;/P&gt;&lt;P&gt;Within the onCreateNode method I am trying to call 'auditComponent.recordAuditValues' to register the event, but I am not seeing anything in my audit query.&lt;/P&gt;&lt;P&gt;I suspect that it is because I am misunderstanding what the argument 'rootPath' is in the call:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;recordAuditValues(&lt;A href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;rootPath, &lt;A href="http://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util" rel="nofollow noopener noreferrer"&gt;Map&lt;/A&gt;&amp;lt;&lt;A href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;,&lt;A href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io" rel="nofollow noopener noreferrer"&gt;Serializable&lt;/A&gt;&amp;gt;&amp;nbsp;values)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;BR /&gt;The API makes it sound like the rootPath and the values Map are combined to be what would be evaluated by the audit path mapper, but I can't seem to get the audit call to show up in audit trail.&lt;BR /&gt;Should the rootpath be the Audit application key?&amp;nbsp; the pathmappings target?&lt;BR /&gt;Thanks!&lt;BR /&gt;Dan&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 15:17:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34591#M14600</guid>
      <dc:creator>dbiggins</dc:creator>
      <dc:date>2017-03-06T15:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34592#M14601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rootPath should be the common base path for your audit event (and data) including the name of the "source audit producer" as the first path fragment to help differentiate it from other audit producers. You can use any of number of path fragments as the "source" in a PathMap within your audit configuration.&lt;/P&gt;&lt;P&gt;E.g. the two default Alfresco audit producers are alfresco-api and alfresco-access, so their rootPath will always begin with /alfresco-api/ and /alfresco-access/ specifically. The alfresco-api producer will include additional path fragments in the root path to differentiate the type of event, e.g. if it is a pre- or post-invocation audit, which service and which operation it refers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend NOT using the audit application key as the first path fragment in the rootPath, just to avoid the confusion / misconception that the producer + application are the same. If Alfresco had chosen this for alfresco-access there might not have been confusion about how audit filters work (e.g. what part of the data they apply to) or they would have implemented it correctly, instead of half-assed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 15:27:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34592#M14601</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-03-06T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34593#M14602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, and my apologies for the smallness of my brain...&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an audit app defined as:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;Audit&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/repo/audit/model/3.2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/repo/audit/model/3.2&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xsi:schemaLocation="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/repo/audit/model/3.2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/repo/audit/model/3.2&lt;/A&gt;&lt;SPAN&gt; alfresco-audit-3.2.xsd"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataExtractors&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DataExtractors&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PathMappings&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PathMap source="/alfresco-api/post/PersonService/createPerson" target="/auditcreateperson/create"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/PathMappings&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Application name="auditcreateperson" key="auditcreateperson"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;AuditPath key="create"&amp;gt;&lt;BR /&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;lt;AuditPath key="args"&amp;gt;&lt;BR /&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;lt;AuditPath key="properties"&amp;gt;&lt;BR /&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;&amp;nbsp; &amp;lt;RecordValue key="properties" dataExtractor="simpleValue" /&amp;gt;&lt;BR /&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;lt;/AuditPath&amp;gt;&lt;BR /&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;lt;/AuditPath&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/AuditPath&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Application&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Audit&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, and I can query for (manually) created users with the query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="link-titled" href="https://contenttest.fcc.gov/alfresco/service/api/audit/query/auditcreateperson?verbose=true&amp;amp;forward=false" title="https://contenttest.fcc.gov/alfresco/service/api/audit/query/auditcreateperson?verbose=true&amp;amp;forward=false" rel="nofollow noopener noreferrer"&gt;https://myserver/alfresco/service/api/audit/query/auditcreateperson?verbose=true&amp;amp;forward=false&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;which returns something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": 2262417,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "application": "auditcreateperson",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "user": "DBiggins",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "time": "2017-03-06T10:56:22.273-05:00",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "values": {&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "/auditcreateperson/create/args/properties/properties": "{{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}sizeCurrent=0, {&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}userName=asd, {&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;A class="jive-link-email-small" href="mailto://www.alfresco.org/model/content/1.0}email=dbiggins@myemail.com" rel="nofollow noopener noreferrer"&gt;//www.alfresco.org/model/content/1.0}email=dbiggins@myemail.com&lt;/A&gt;&lt;SPAN&gt;, {&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}lastName=asd, {&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}firstName=asd}"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;so that would mean that my rootpath would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/alfresco-api/post/PersonService/createPerson&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, and my map would be something like the values value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 16:30:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34593#M14602</guid>
      <dc:creator>dbiggins</dc:creator>
      <dc:date>2017-03-06T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34594#M14603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the event that you capture with this PathMap example the rootPath is indeed "/alfresco-api/post/PersonService/createPerson" which is composed of the individual elements that refer to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"alfresco-api" the event / audit producer&lt;/LI&gt;&lt;LI&gt;"post" referring to audit events recorded after createPerson has completed&lt;/LI&gt;&lt;LI&gt;"PersonService" and "createPerson" as the service and operation that was called&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map in this example is all the data associated with the event. In fact, the map is the structure that contains the "args" key that you use to map the audit event in your audit application. In its entirety the map contains:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"args" - the map of parameters to the invocation of createPerson using the parameter names as key (e.g. "properties")&lt;/LI&gt;&lt;LI&gt;"no-error" - a dummy entry to signal a successful operation&lt;/LI&gt;&lt;LI&gt;"error" - the error message (truncated to 1024 characters) if the operation failed&lt;/LI&gt;&lt;LI&gt;"result" - the return value of the operation (if it has any), for createPerson this would be the NodeRef of the created person&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your audit application you are actually disecting the map by using the AuditPath and RecordValue to only handle a subset of the data.&lt;/P&gt;&lt;P&gt;The "values" object in your audit query is the sum of all the data you configured to be persisted via RecordValue and/or GenerateValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back to your policy, you should NOT use the same "/alfresco-api/..." path as the rootPath - doing so could cause errors in other audit applications that expect the data to have a certain structure. Instead you should pick a unique, custom name. You also do not need to include all the path elements that alfresco-api includes. It would be perfectly valid to only use a path "/acme-audit-policies/createPerson" and provide a map that contains the data you need for recording - based on your example it might be enough for the map to contain the "properties" entry with all the current persons node properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 16:45:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34594#M14603</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-03-06T16:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34595#M14604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;BR /&gt;&lt;P&gt;Coming back to your policy, you should NOT use the same "/alfresco-api/..." path as the rootPath - doing so could cause errors in other audit applications that expect the data to have a certain structure. Instead you should pick a unique, custom name. You also do not need to include all the path elements that alfresco-api includes. It would be perfectly valid to only use a path "/acme-audit-policies/createPerson" and provide a map that contains the data you need for recording - based on your example it might be enough for the map to contain the "properties" entry with all the current persons node properties.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks Axel!&lt;/P&gt;&lt;P&gt;I was hung up on exactly that: creating a basic audit application was the right way to approach it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;Audit&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/repo/audit/model/3.2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/repo/audit/model/3.2&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xsi:schemaLocation="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/repo/audit/model/3.2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/repo/audit/model/3.2&lt;/A&gt;&lt;SPAN&gt; alfresco-audit-3.2.xsd"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataExtractors&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DataExtractors&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PathMappings&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PathMap source="/custom-api/createPerson" target="/auditpersoncreate"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PathMap source="/custom-api/deletePerson" target="/auditpersondelete"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/PathMappings&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Application name="auditpersoncreate" key="auditpersoncreate"&amp;gt;&lt;BR /&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;lt;RecordValue key="lastName" dataExtractor="simpleValue" dataSource="/auditpersoncreate/lastName" dataTrigger="/auditpersoncreate/lastName"/&amp;gt;&lt;BR /&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;lt;RecordValue key="firstName" dataExtractor="simpleValue" dataSource="/auditpersoncreate/firstName" dataTrigger="/auditpersoncreate/firstName"/&amp;gt;&lt;BR /&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;lt;RecordValue key="userName" dataExtractor="simpleValue"&amp;nbsp; dataSource="/auditpersoncreate/userName" dataTrigger="/auditpersoncreate/userName"/&amp;gt;&lt;BR /&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;lt;RecordValue key="email" dataExtractor="simpleValue"&amp;nbsp; dataSource="/auditpersoncreate/email" dataTrigger="/auditpersoncreate/email"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Application&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Application name="auditpersondelete" key="auditpersondelete"&amp;gt;&lt;BR /&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;lt;RecordValue key="lastName" dataExtractor="simpleValue" dataSource="/auditpersondelete/lastName" dataTrigger="/auditpersondelete/lastName"/&amp;gt;&lt;BR /&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;lt;RecordValue key="firstName" dataExtractor="simpleValue" dataSource="/auditpersondelete/firstName" dataTrigger="/auditpersondelete/firstName"/&amp;gt;&lt;BR /&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;lt;RecordValue key="userName" dataExtractor="simpleValue"&amp;nbsp; dataSource="/auditpersondelete/userName" dataTrigger="/auditpersondelete/userName"/&amp;gt;&lt;BR /&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;lt;RecordValue key="email" dataExtractor="simpleValue"&amp;nbsp; dataSource="/auditpersondelete/email" dataTrigger="/auditpersondelete/email"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Application&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Audit&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I can see via a log call when a person is created manually or via LDAP synch, and I can see an audit item created when items are manually created or deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am NOT seeing an audit item created when a person is created or deleted via LDAP synch, which is strange, since I can see that the policy code is being executed because of the logger result in the alfresco.log.&amp;nbsp; The same policy code is being run for manual and for LDAP synchs.&lt;/P&gt;&lt;P&gt;I was thinking that it has something to do with NotificationFrequency, though I have tried this with EVERY_EVENT, FIRST_EVENT, and TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything that I need to be aware of when calling AuditComponent.recordAuditValues that would be different in these two scenarios?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your time and expertise!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:25:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34595#M14604</guid>
      <dc:creator>dbiggins</dc:creator>
      <dc:date>2017-03-07T17:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34596#M14605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*sigh*&lt;BR /&gt;I believe the "UserAuditFilter" that Alfresco has added in one of the 4.x release cycles eliminates those audit entries. This relates to the "audit.filter.alfresco-access.transaction.user" configuration property you can set in alfresco-global.properties. Due to the (piss-poor) implementation that was done, the name is misleading - instead of filtering only the audit events from the audit producer "alfresco-access" it actually filters data from ALL audit producers.&lt;/P&gt;&lt;P&gt;By default, the value of this setting is "~System;~null;.*" which means that all events with the system user and no user are suppressed. For the synchronisation you'd have to override this setting with just "~null;.*" so system user is no longer filtered. Be aware though, that this may increase the amount of data collected in other audit applications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:53:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34596#M14605</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-03-07T18:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34597#M14606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha.&lt;/P&gt;&lt;P&gt;Thanks for all of the help and the additional information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll take a look at that vs using some other vehicle for this particular kind of auditing information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hate to drive people to *sigh*ing, but again, you have been very helpful!!!!!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 20:45:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34597#M14606</guid>
      <dc:creator>dbiggins</dc:creator>
      <dc:date>2017-03-07T20:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34598#M14607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Axel,&lt;/P&gt;&lt;P&gt;I hope this improves your day a LITTLE, but I am looking at the method:&lt;/P&gt;&lt;P&gt;recordAuditValuesWithUserFilter([rootpath],[map],[userfilterboolean])&lt;/P&gt;&lt;P&gt;After a few tests of setting that last param to false, it APPEARS to ignore the user filter in the global.properties file....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help again!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:56:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34598#M14607</guid>
      <dc:creator>dbiggins</dc:creator>
      <dc:date>2017-03-07T21:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: how can i capture the event of a user being added as part of an AD LDAP synch?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34599#M14608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't *sigh*ing because of your problem - I was just reminded how Alfresco is sometimes adding features with only a narrow-minded view on fixing some issue, without considering the implications on other users, e.g. like yourself, that get hit with side-effects that are neither documented nor in any way easily understandable unless you look into the core code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 23:14:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-capture-the-event-of-a-user-being-added-as-part-of-an/m-p/34599#M14608</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-03-07T23:14:45Z</dc:date>
    </item>
  </channel>
</rss>

