Hello, I have the following requirement:
1. When a document is uploaded to the library, it needs to be locked.
2. A scheduler job (console app) runs at night which checks certain parameters and unlocks the document.
I am able to achieve #1 above. I have a sequential workflow that does this with a few other things. However, the file is locked by the SHAREPOINT\system account. Now, when the scheduler runs, it is unable to unlock the file since it runs under the account of the windows domain user logged into the machine. How do I overcome this issue?
Is there a way to run the scheduler job using SharePoint system account? I tried placing the code withing RunWithElevatedSecurityPrivileges, didn't work.