<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -",
    "visionOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialProviderViewController/performWithoutUserInteraction(generatePasswordsRequest:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderViewController(im)performGeneratePasswordsRequestWithoutUserInteraction:"
  },
  "title" : "performWithoutUserInteraction(generatePasswordsRequest:)"
}
-->

# performWithoutUserInteraction(generatePasswordsRequest:)

Attempt to generate passwords based on developer-specified rules.

```
func performWithoutUserInteraction(generatePasswordsRequest: ASGeneratePasswordsRequest)
```

## Discussion

To return results, you must call ``ASCredentialProviderExtensionContext/completeGeneratePasswordRequest(results:completionHandler:)`.

> Note: When this method is called, your extension’s view controller is not present on the screen.
> ``doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASExtensionError/userInteractionRequired`` will not be honored and treated as a failure.

> Note: You should not update or replace any existing credentials when this API is called.

To indicate support for this feature, add `SupportsGeneratePasswordCredentials` under the
`ASCredentialProviderExtensionCapabilities` dictionary.

```
Info.plist
├─ NSExtension
    ├─ NSExtensionAttributes
        ├─ ASCredentialProviderExtensionCapabilities
            ├─ SupportsSavePasswordCredentials => true
            ├─ SupportsGeneratePasswordCredentials => true
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)