<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialProviderViewController/reportUnusedPasswordCredential(forDomain:userName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderViewController(im)reportUnusedPasswordCredentialForDomain:userName:"
  },
  "title" : "reportUnusedPasswordCredential(forDomain:userName:)"
}
-->

# reportUnusedPasswordCredential(forDomain:userName:)

Receives a report from the system that a relying party indicatd that a password credential isn’t needed anymore for a given user name.

```
func reportUnusedPasswordCredential(forDomain domain: String, userName: String)
```

## Parameters

`domain`

The website domain that the credential is saved for.

`userName`

The account user name.

## Discussion
> > This method will be called for handling password credential updates when a relying party indicates a password is no longer needed using the `ASCredentialUpdater` API. You may hide or remove the credential. This update should be handled in the background, so no blocking UI or error should ever be shown.

The system calls this method when a relying party reports calls [`reportUnusedPasswordCredential(domain:userName:)`](/documentation/AuthenticationServices/ASCredentialUpdater/reportUnusedPasswordCredential(domain:userName:)) to indicate a password isn’t needed anymore.
It may call this because a person using the app has transitioned to using a passkey, or because they deleted their account.
Your manager can hide or remove the credential after it receives this report.

> Important: Perform any updates in the background and don’t show a blocking UI or any error.

To indicate support for this feature, add the key `SupportsCredentialUpdate` with a value of `YES` under the `ASCredentialProviderExtensionCapabilities` dictionary in your app’s information property list:

```not specified
Info.plist
├─ NSExtension
    ├─ NSExtensionAttributes
        ├─ ASCredentialProviderExtensionCapabilities
            ├─ SupportsCredentialUpdate => YES
```

---

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)