---
title: username
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnprotocol/username
---

# username

The user name component of the tunneling protocol authentication credential.

## Declaration

```swift
var username: String? { get set }
```

## See Also

### Authenticating the user

- [passwordReference](networkextension/nevpnprotocol/passwordreference.md)
- [identityReference](networkextension/nevpnprotocol/identityreference.md)
- [identityData](networkextension/nevpnprotocol/identitydata.md)
- [identityDataPassword](networkextension/nevpnprotocol/identitydatapassword.md)
