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

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 –  MaurizioPz Apr 2 '13 at 12:33
add comment

1 Answer

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
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.