<!--
{
  "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/reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices19ASCredentialUpdaterC31reportPublicKeyCredentialUpdate22relyingPartyIdentifier10userHandle7newNameySS_10Foundation4DataVSStYaKF"
  },
  "title" : "reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:)"
}
-->

# reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:)

Provides credential managers with an update to a credential’s name, such as when changing the user name or email address on an account.

```
final func reportPublicKeyCredentialUpdate(relyingPartyIdentifier: String, userHandle: Data, newName: String) async throws
```

## Parameters

`relyingPartyIdentifier`

The relying party, typically a website, for which to save the credential.

`userHandle`

The user identifier.

`newName`

The new user name for the credential.

## Discussion

This call shares the updated credential data with all 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.

---

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)