---
title: defaultUsername
framework: imagecapturecore
role: symbol
role_heading: Instance Property
path: imagecapturecore/icscannerdevice/defaultusername
---

# defaultUsername

A default username on protected scanners.

## Declaration

```swift
var defaultUsername: String { get set }
```

## Discussion

Discussion If the scanner is protected, you can set this property to a specific username as a convenience, instead of prompting the user for a username. The value persists until reset to nil.
