Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We have a sharepoint 2010 site. We would like to find who activates and deactives feature in site collection features(site collection level) or Manage site features(subsite level). We are lready having the audit log which does not capture this. Is there any way how to find who is activating and deactivating the feature? Any help is much appreciated.

Sivakumar. P

share|improve this question
    
are that feature custom? –  Salvatore Di Fazio Oct 21 '12 at 20:04
    
No. Its just OOB features. Say for example "Sharepoint server publishing feature". –  sivakumar Oct 21 '12 at 20:48
    
can you develop a feature? –  Salvatore Di Fazio Oct 22 '12 at 5:49
add comment

1 Answer

I don't think auditing will show you who activates or deactivates features.

But you could set log level to verbose, like this:

Set-SPLogLevel -TraceSeverity Verbose -EventSeverity Verbose

and then you could look for __Current User=...*, although I can not guarantee it will work, and setting log level to verbose will of course also have its implications.

Another completely different approach is to do the logging yourself through JavaScript, example with jQuery:

$('[value=Activate],[value=Deactivate]').click(function() {
  // Do ajax here
}); 

then you could either use Client Object Model to get the current user or even just post directly to a WCF Service, which should know what users is calling it, and then log this information in any way you want. For example using SPLog.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.