---
title: "performWithoutUserInteraction(generatePasswordsRequest:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialproviderviewcontroller/performwithoutuserinteraction(generatepasswordsrequest:)"
---

# performWithoutUserInteraction(generatePasswordsRequest:)

Attempt to generate passwords based on developer-specified rules.

## Declaration

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

## Discussion

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. 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
