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

# reportUnusedPasswordCredential(domain:userName:)

Report an unused password credential for a given domain and username. Password managers may remove or hide the password credential.
This information is shared with all password managers enabled in the system.

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

## Parameters

`domain`

The website domain that the credential is saved for.

`userName`

The account user name.

## Discussion> Throws: `ASAuthorizationError` 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)