---
title: userName
framework: authenticationservices
role: symbol
role_heading: Instance Property
path: authenticationservices/asimportablecredential/basicauthentication/username
---

# userName

The user name associated with this credential. When instantiating from JSON, this property will be populated from the “username” field.

## Declaration

```swift
var userName: ASImportableEditableField?
```
