M-Files API 22.6.11519.0
LogInAsUser Method
VaultConnection Object : LogInAsUser Method
The user name as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
The password as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
The domain for the user as a string. Used only with the MFAuthTypeSpecificWindowsUser authentication mode.
The Service Principal Name as a string.
Description
Logs in to the vault using the specified credentials.
Syntax
Visual Basic
Public Function LogInAsUser( _
   ByVal AuthType As MFAuthType, _
   ByVal UserName As String, _
   ByVal Password As String, _
   Optional ByVal Domain As Variant, _
   Optional ByVal SPN As Variant _
) As Vault
Parameters
AuthType
ValueDescription
MFAuthTypeLoggedOnWindowsUserWindows authentication with current user credentials.
MFAuthTypeSpecificMFilesUserM-Files authentication, user needs to specify the credentials.
MFAuthTypeSpecificWindowsUserWindows authentication, user needs to specify the credentials.
MFAuthTypeUnknownUnspecified authentication method.
UserName
The user name as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Password
The password as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Domain
The domain for the user as a string. Used only with the MFAuthTypeSpecificWindowsUser authentication mode.
SPN
The Service Principal Name as a string.
See Also

VaultConnection Object  | VaultConnection Members