---
title: "reportUnusedPasswordCredential(domain:userName:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialdatamanager/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.

## Declaration

```swift
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

Discussion note: ASAuthorizationError if the system failed to accept the update.
