This content has been marked as final. Show 2 replies
Here is a snippet that you may find helpful?
If objFile.IsLocked Then 'is it locked by me?
Dim userMgr As IEdmUserMgr5
userMgr = v8
Dim user As IEdmUser5
user = userMgr.GetLoggedInUser
If user.Name = objFile.LockedByUser.Name Then 'the file is already checked out by me
CheckoutFile = True
userMgr = Nothing
user = Nothing
I missed the GetLoggedInUser method in the IEdmUserMgr5 interface. I could determine who had the file locked, I just couldn't figure out who the current user was. I appreciate the help.