---
url: /flow/guide/scripting-reference/classes/db-connection/dbcon.username.md
---

# DBCon.Username

## Declaration

`property Username : String;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Source.DBCons[0].DBCon.Username;
end;
```

## Description

Returns the username configured on the DB Connection
