Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Unlocking document locked by SHAREPOINT\system

$
0
0

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.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>