title: Sitecore Scheduled Task: Cannot access any items in run class
body: <p>I configured a scheduled task via database, which is triggered as expected and calls a method "Execute" in a C# class. My problem is that in my Execute method no Sitecore items can be accessed. I even get a NullPointerExecption when calling Sitecore.Context.Database.</p>
  
  <p>I guess this must be a security problem, which makes sense. So I tried to get the permissions using UserSwitcher and SecurityDisabler, but that did not help.</p>
  
  <p>Can anyone point me to what I'm missing?</p>