<!--
{
  "availability" : [
    "iOS: 26.0.0 - 26.2.0",
    "iPadOS: 26.0.0 - 26.2.0",
    "macCatalyst: 26.0.0 - 26.2.0",
    "macOS: 26.0.0 - 26.2.0",
    "visionOS: 26.0.0 - 26.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialUpdater/reportUnusedPasswordCredential(domain:userName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices19ASCredentialUpdaterC30reportUnusedPasswordCredential6domain8userNameySS_SStYaKF"
  },
  "title" : "reportUnusedPasswordCredential(domain:userName:)"
}
-->

# reportUnusedPasswordCredential(domain:userName:)

Informs credential managers that a password is no longer in use.

```
final func reportUnusedPasswordCredential(domain: String, userName: String) async throws
```

## Parameters

`domain`

The website domain for which to save the password.

`userName`

The account user name.

## Discussion

Credential managers can act on this report by removing or hiding the password credential.

This call shares the updated credential data with all enabled credential managers installed on the system.

> Throws: This method throws ``doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASAuthorizationError-swift.struct`` if the system failed to accept the update.
> ` if the system failed to accept the update.

---

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)