Purpose

Specifies one of the following identifiers used for authentication:
  • The default user ID that is used to connect to your database. This value is used when authenticating with user ID/password authentication (AuthenticationMethod=userIdPassword).
  • The domain server name used for NTLM authentication (AuthenticationMethod=ntlmjava or AuthenticationMethod=ntlm2java).
  • The client ID of the managed identity for a Microsoft Entra ID user-assigned managed identity authentication.

Valid values

[ domain_name \] user_name

where:

domain_name
is the name of a valid domain server. The name is case-insensitive and optional. If specified, you must separate the domain name from the user name by a backward slash (\).
user_name
is a valid user name or a client ID of the user-assigned managed identity. It is case-insensitive.

Example

  • DOMAIN1\Smith for NTLM authentication.
  • Smith for user ID/password authentication.
  • e4f62g67-5678-4d56-a567-12a3bc456789 for Microsoft Entra ID managed identity authentication.

Data source method

public String getUser()

public void setUser(String)

Default

None

Data type

String