Content Type Subscriber Job Generates Unwanted Audit Entries

The Content Type Subscriber job which is responsible for synchronizing Content Types from the Content Type Hub to Site Collections will generate unwanted audit entries regardless of the Site Collection Auditing configuration on the destination Site Collection. This bug is present in SharePoint 2010 through SharePoint 2016 as of this blog post.

This bug is due to the method Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.Subscriber.SynchronizeSite.

In this method, it is calling Audit, or Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.Subscriber.Audit. In the SynchronizeSite method, either during the import of a package or unpublish of a Content Type to a Site Collection, the Audit method is called.

As it is the responsibility of the method(s) calling SPSite.Audit.WriteAuditEvent to evaluate the specified Site Collection Audit Setting, the above Audit method simply fails to check for any effective audit mask, thus writing entries to the Audit Log even if we do not have auditing enabled.

Microsoft has confirmed that this is a bug, but only for SharePoint Server 2016. While the code is nearly identical in SharePoint Server 2010 and SharePoint Server 2013, if this is fixed, it will likely only be fixed in SharePoint Server 2016 and maybe 2013. SharePoint Server 2010 is in the extended phase of support and is highly unlikely to receive a bug fix such as this. Pure speculation on my part, of course!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.