M-Files API 23.11.13135.0
LogInAsUserToVaultWithSPN Method
MFilesServerApplication Object : LogInAsUserToVaultWithSPN Method

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

User name as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Password as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Domain for the user. Used only with the MFAuthTypeSpecificWindowsUser authentication mode.
The Service Principal Name as a string.
Description
Logs in to the vault as a user with a specific SPN. Must connect to the server first.
Syntax
Visual Basic
Public Function LogInAsUserToVaultWithSPN( _
   ByVal VaultGUID As String, _
   Optional ByVal TimeZone As TimeZoneInformation = 0, _
   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 _
) As Vault
Parameters
VaultGUID
TimeZone

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

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
User name as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Password
Password as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Domain
Domain for the user. Used only with the MFAuthTypeSpecificWindowsUser authentication mode.
SPN
The Service Principal Name as a string.
See Also

MFilesServerApplication Object  | MFilesServerApplication Members