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

I need to call a method from publishing.administration-Namespace as a farm admin. To be specific: ContentDeploymentJob.GetAllJobs();

When I try to run that code I get the exception that the code can only be run by farm administrators.

SPSecurity.RunWithElevatedPrivileges does not help. Also running under the System Accounts SPUserToken Like 'SPSite("",SPUserToken.SystemAccount)' is of no help, because I am not in a SPSite-Context

Which ways are there to achieve that?

share|improve this question
up vote 0 down vote accepted

Meanwhile I found out that can not be done in a normal SiteCollection. You have to create a timerjob to read and start Content-Deployments and then communicate with you Site Collection

share|improve this answer

Your Answer


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.