---
title: "reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/credentialdatamanager/reportpublickeycredentialupdate(relyingpartyidentifier:userhandle:newname:)"
---

# reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:)

Report an update to a credential’s name, such as when changing the user name on an account. This information is shared with all password managers enabled in the system.

## Declaration

```swift
@MainActor func reportPublicKeyCredentialUpdate(relyingPartyIdentifier: String, userHandle: Data, newName: String) async throws
```

## Parameters

- `relyingPartyIdentifier`: Relying party (website) that the credential is saved for.
- `userHandle`: User identifier.
- `newName`: The new user name for the credential.

## Discussion

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