{"id":494,"date":"2011-10-03T10:58:39","date_gmt":"2011-10-03T09:58:39","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=494"},"modified":"2011-11-28T19:49:54","modified_gmt":"2011-11-28T19:49:54","slug":"sharepoint-audit-solution","status":"publish","type":"post","link":"http:\/\/www.stuartroberts.net\/index.php\/2011\/10\/03\/sharepoint-audit-solution\/","title":{"rendered":"SharePoint Audit Solution"},"content":{"rendered":"<p>I&#8217;ve written some code for SharePoint 2010 (is also possible to make work with SharePoint 2007) that allows users to view audit information relating to site, list and individual items.<\/p>\n<p>I&#8217;ve also added the code to Codeplex, which you can download by clicking <a href=\"http:\/\/sharepointaudit.codeplex.com\/\" target=\"_blank\">this<\/a> link.  The code in the project should be straight forward enough to follow and understand.<\/p>\n<p>Basically, the project comprises of some layout pages which reuse a configurable user control to display auditing information within a paged grid control.  Access to these pages is either via the edit control block (ECB) context menu or the ribbon interface.<\/p>\n<p>Once deployed, activate the <em>Item Level Auditing<\/em> web feature.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Activate-Feature.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Activate-Feature.png\" alt=\"\" title=\"Activate Feature\" width=\"990\" height=\"40\" class=\"aligncenter size-full wp-image-683\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Activate-Feature.png 990w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Activate-Feature-300x12.png 300w\" sizes=\"(max-width: 990px) 100vw, 990px\" \/><\/a><br \/>\n<!--more--><br \/>\nYou will now notice a <em>view audit log<\/em> menu item in the site actions menu:<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Site-Actions-Menu.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Site-Actions-Menu.png\" alt=\"\" title=\"Site Actions Menu\" width=\"256\" height=\"452\" class=\"aligncenter size-full wp-image-684\" \/><\/a><\/p>\n<p>In the ribbon for a library:<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Library-Menu.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Library-Menu.png\" alt=\"\" title=\"Library Menu\" width=\"672\" height=\"132\" class=\"aligncenter size-full wp-image-685\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Library-Menu.png 672w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Library-Menu-300x58.png 300w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/a><\/p>\n<p>In the ribbon for a list item:<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-Menu.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-Menu.png\" alt=\"\" title=\"Item Menu\" width=\"488\" height=\"190\" class=\"aligncenter size-full wp-image-686\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-Menu.png 488w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-Menu-300x116.png 300w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/a><\/p>\n<p>and in the ECB for a list item:<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-ECB-Menu.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-ECB-Menu.png\" alt=\"\" title=\"Item ECB Menu\" width=\"429\" height=\"258\" class=\"aligncenter size-full wp-image-687\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-ECB-Menu.png 429w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Item-ECB-Menu-300x180.png 300w\" sizes=\"(max-width: 429px) 100vw, 429px\" \/><\/a><\/p>\n<p>As an example, clicking the menu item while on a list item, the following audit information page is loaded:<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Audit-Information.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Audit-Information.png\" alt=\"\" title=\"Audit Information\" width=\"1050\" height=\"335\" class=\"aligncenter size-full wp-image-688\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Audit-Information.png 1050w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Audit-Information-300x95.png 300w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2011\/10\/Audit-Information-1024x326.png 1024w\" sizes=\"(max-width: 1050px) 100vw, 1050px\" \/><\/a><\/p>\n<p>The contents of the output are cached, which is all configurable through the AuditLogView user control.  The columns that are displayed for each audit type (site, list or item) are also configurable by editing the corresponding class.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve written some code for SharePoint 2010 (is also possible to make work with SharePoint 2007) that allows users to view audit information relating to site, list and individual items. I&#8217;ve also added the code to Codeplex, which you can &hellip; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2011\/10\/03\/sharepoint-audit-solution\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[3],"tags":[31,81],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/plx2I-7Y","_links":{"self":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/494"}],"collection":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":9,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":722,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions\/722"}],"wp:attachment":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}