---
title: "reportPublicKeyCredentialUpdate(forRelyingParty:userHandle:newName:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialproviderviewcontroller/reportpublickeycredentialupdate(forrelyingparty:userhandle:newname:)"
---

# reportPublicKeyCredentialUpdate(forRelyingParty:userHandle:newName:)

Receives a report from the system that a relying party indicated that a passkey’s user name updated.

## Declaration

```swift
func reportPublicKeyCredentialUpdate(forRelyingParty relyingParty: String, userHandle: Data, newName: String)
```

## Parameters

- `relyingParty`: 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 The system calls this method when a relying party sends an updated user name by calling reportPublicKeyCredentialUpdate(relyingPartyIdentifier:userHandle:newName:). important: Perform any updates in the background and don’t show a blocking UI or any error. To indicate support for this feature, add the key SupportsCredentialUpdate with a value of YES under the ASCredentialProviderExtensionCapabilities dictionary in your app’s information property list: Info.plist ├─ NSExtension     ├─ NSExtensionAttributes         ├─ ASCredentialProviderExtensionCapabilities             ├─ SupportsCredentialUpdate => YES

## See Also

### Receiving credential updates

- [reportAllAcceptedPublicKeyCredentials(forRelyingParty:userHandle:acceptedCredentialIDs:)](authenticationservices/ascredentialproviderviewcontroller/reportallacceptedpublickeycredentials(forrelyingparty:userhandle:acceptedcredentialids:).md)
- [reportUnknownPublicKeyCredential(forRelyingParty:credentialID:)](authenticationservices/ascredentialproviderviewcontroller/reportunknownpublickeycredential(forrelyingparty:credentialid:).md)
- [reportUnusedPasswordCredential(forDomain:userName:)](authenticationservices/ascredentialproviderviewcontroller/reportunusedpasswordcredential(fordomain:username:).md)
