We have lots of sites and files in SPO In an SPFx webpart, I need to warn the user about a certain file being open by any user.
I use PnP/JS getLockedByUser() function of IFIle type to get the current locked by user. The problem is that I get undefined results for any user other than the current user.
If the file is open by anyone else, the code "think" no one has it open and will fail because the file is open.
Is there a Rest, graph or C# option, to try in an azure function,to check it?
Thanks