This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get user's full name from Event Handler

Former Member
Former Member
Hello All

This problem was touched on in this topic (community.m-files.com/index.php but I was wondering if anyone has been able to come up with an easier way to output a user's full name using an Event Handler? I've used the below script in the BeforeDeleteObject handler:

sCurrentUser = Vault.UserOperations.GetUserAccount(CurrentUserID).LoginName


but that just gives me the SERVER/username and not the full name of the user. Is there a simple way to do this without having to create a connection to the vault with login credentials?


Parents
  • Hi James,

    The instruction seems easy, but whenever I used it, I always obtain "(M-Files Server)" instead of the real user... :(


    Err.Raise MFScriptCancel, "Logged in User : " & vault.SessionInfo.AccountName

    Best regards, Jaco.
Reply
  • Hi James,

    The instruction seems easy, but whenever I used it, I always obtain "(M-Files Server)" instead of the real user... :(


    Err.Raise MFScriptCancel, "Logged in User : " & vault.SessionInfo.AccountName

    Best regards, Jaco.
Children
No Data