Add CSOM Method to Release File Locks
We need the ability to unlock files via CSOM (with an App Only token) via the SPFile.ReleaseLock method. The flow would be similar to what we can accomplish on-prem:
$web = Get-SPWeb http://webUrl
$list = $web.Lists['Documents']
$item = $list.Items
$lockId = $item.File.LockId
This prevents needing to open support cases for long-lived lock files in scenarios where the end user is having connectivity issues causing long exclusive locks to be created, potentially locking the end user out of their own file.
Thanks for your feedback! Although we appreciate your time and effort to give us this feedback, it’s not something we’re planning to do right now.
We are potentially looking into this for the Microsoft Graph API side, but cannot provide any estimate on that work for now.