---
title: username
framework: accounts
role: symbol
role_heading: Instance Property
path: accounts/acaccount/username
---

# username

The username for this account.

## Declaration

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

## Discussion

Discussion This property must be set before the account is saved. After the account is saved, this property is available if the user grants the application access to this account; otherwise it’s nil.

## See Also

### Accessing Properties

- [accountDescription](accounts/acaccount/accountdescription.md)
- [accountType](accounts/acaccount/accounttype.md)
- [credential](accounts/acaccount/credential.md)
- [identifier](accounts/acaccount/identifier.md)
- [userFullName](accounts/acaccount/userfullname.md)
