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

# userName

The username of this passkey credential.

## Declaration

```swift
var userName: String { get }
```

## Discussion

Discussion The passkey reports its userName value as its user.

## See Also

### Associating a user

- [userHandle](authenticationservices/aspasskeycredentialidentity/userhandle.md)
