---
title: "checkAutoFillUserNamesAndPasswordsEnabled(completionHandler:)"
framework: Safari app extensions
role: symbol
role_heading: Type Method
platforms: [Mac Catalyst 27.0+, macOS 27.0+]
path: "safariservices/sfsafarisettings/checkautofillusernamesandpasswordsenabled(completionhandler:)"
---

# checkAutoFillUserNamesAndPasswordsEnabled(completionHandler:)

Query the value of the Safari settings toggle for AutoFill > User names and passwords

## Declaration

```swift
class func checkAutoFillUserNamesAndPasswordsEnabled(completionHandler: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```swift
class var isAutoFillUserNamesAndPasswordsEnabled: Bool { get async throws }
```

## Parameters

- `completionHandler`: The block the system calls after the operation complets, with a boolean parameter representing the toggle value.
