SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What are the permissions required to modify/add a managed or crawled property in Sharepoint 2010?

EDIT:
programmatically

share|improve this question
1  
You need access to Central Administration to edit the Search Service application settings. – teylyn Apr 2 '13 at 10:00
    
Sorry I meant programmatically – Maurizio Pozzobon Apr 2 '13 at 12:33
up vote 1 down vote accepted

You can use SPSecurity.RunWithElevatedPrivileges. this is a delegate method that is to run with elevated rights. This method runs under the Application Pool identity, which has site collection administrator privileges on all site collections hosted by that application pool.

For example:

 SPSecurity.RunWithElevatedPrivileges(delegate()
      {
            // Elevated Permission Code Goes Here
      });  

This way you do not need to grant special permissions, just wrap your code with the method above.

share|improve this answer

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.