Try our conversational search powered by Generative AI!

The required access level was "Edit, Publish".


I have scheduled a job for update and saving data in a page.

While triggering manually the scheduled job is working fine. But when setting scheduled job to automatic, the following error is logged. 

 Access was denied to content 54321_12345. The required access level was "Edit, Publish".

May 15, 2019 8:55

You need to set access level to NoAccess:

contentRepository.Save(myContent, SaveAction.Publish, AccessLevel.NoAccess)
May 15, 2019 9:13
Sam Brooks - Apr 15, 2021 11:24
thanks for this, i was struggling with the error for a while

When you trigger the scheduled job manually the job is run with your current account, which is usually admin. when it is run automatically I think the account is equivalent to Everyone. that explains why it is not working. Dejan's solution should work, as it basically says that skipping checks for current user access rights when saving. 

May 15, 2019 9:21
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.