---
title: "reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialupdater/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.

## Declaration

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

Discussion This call shares the updated credential data with all credential managers installed on the system. note: This method throws ASAuthorizationError if the system failed to accept the update.
