<!--
{
  "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/performWithoutUserInteractionIfPossible(savePasswordRequest:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderViewController(im)performSavePasswordRequestWithoutUserInteractionIfPossible:"
  },
  "title" : "performWithoutUserInteractionIfPossible(savePasswordRequest:)"
}
-->

# performWithoutUserInteractionIfPossible(savePasswordRequest:)

Attempt to save a password credential.

```
func performWithoutUserInteractionIfPossible(savePasswordRequest: ASSavePasswordRequest)
```

## Discussion

To return results, you must call  [`completeSavePasswordRequest(completionHandler:)`](/documentation/AuthenticationServices/ASCredentialProviderExtensionContext/completeSavePasswordRequest(completionHandler:)).

> Note: When this method is called, your extension’s view controller is not present on the screen.
> You can request user interaction by calling ``ASCredentialProviderExtensionContext/cancelRequest(with:)``, using ``doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASExtensionError/userInteractionRequired``.

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

```
Info.plist
├─ NSExtension
    ├─ NSExtensionAttributes
        ├─ ASCredentialProviderExtensionCapabilities
            ├─ SupportsSavePasswordCredentials => 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)