M-Files API 23.3.12441.9
LogInAsUserToVaultEx Method
MFilesServerApplication Object : LogInAsUserToVaultEx Method
The GUID of the target vault.

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

The authentication type.
The username as a string. Not with the MFAuthTypeLoggedOnWindowsUser authentication mode.
The password as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
The domain for the user. Used only with the MFAuthTypeSpecificWindowsUser authentication mode.
Additional information (such as a client certificate) as JSON.
Description
Logs in to the vault as a user. Must connect to the server first.
Syntax
Visual Basic
Public Function LogInAsUserToVaultEx( _
   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 AdditionalInfoAsJSON As String = "" _
) As Vault
Parameters
VaultGUID
The GUID of the target vault.
TimeZone

The time zone. 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.
The authentication type.
UserName
The username as a string. Not with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Password
The password as a string. Not used with the MFAuthTypeLoggedOnWindowsUser authentication mode.
Domain
The domain for the user. Used only with the MFAuthTypeSpecificWindowsUser authentication mode.
AdditionalInfoAsJSON
Additional information (such as a client certificate) as JSON.
See Also

MFilesServerApplication Object  | MFilesServerApplication Members