M-Files API 23.11.13135.0
LogInAsUserWithSPN Method
VaultOnServer Object : LogInAsUserWithSPN Method
The authentication type.
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.

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

Description
Logs in to the vault with specified credentials and SPN.
Syntax
Visual Basic
Public Function LogInAsUserWithSPN( _
   Optional ByVal AuthType As MFAuthType = MFAuthTypeLoggedOnWindowsUser, _
   Optional ByVal UserName As Variant, _
   Optional ByVal Password As Variant, _
   Optional ByVal Domain As Variant, _
   Optional ByVal SPN As Variant, _
   Optional ByVal TimeZone As TimeZoneInformation = 0 _
) 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.
The authentication type.
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.
TimeZone

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

See Also

VaultOnServer Object  | VaultOnServer Members