---
title: userName
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/username
---

# userName

Returns the name of the user who created the annotation.

## Declaration

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

## Return Value

Return Value The name of the user who created the annotation, or NULL if no user name is set.

## See Also

### Related Documentation

- [PDFAnnotation](pdfkit/pdfannotation.md)

### Accessing Information About an Annotation

- [page](pdfkit/pdfannotation/page.md)
- [modificationDate](pdfkit/pdfannotation/modificationdate.md)
- [type](pdfkit/pdfannotation/type.md)
- [action](pdfkit/pdfannotation/action.md)
- [PDFAction](pdfkit/pdfaction.md)
- [PDFDestination](pdfkit/pdfdestination.md)
