---
title: "createCredentialRegistrationRequest(clientData:displayName:name:userID:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asauthorizationwebbrowsersecuritykeypublickeycredentialprovider-8xc1s/createcredentialregistrationrequest(clientdata:displayname:name:userid:)"
---

# createCredentialRegistrationRequest(clientData:displayName:name:userID:)

Creates a credential registration request for registering a new password with the relying party.

## Declaration

```swift
func createCredentialRegistrationRequest(clientData: ASPublicKeyCredentialClientData, displayName: String, name: String, userID: Data) -> ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest
```

## Parameters

- `clientData`: The client data that contains the reply to the relying party’s challenge.
- `displayName`: The proper name of the user.
- `name`: The person’s user name for their account with the relying party.
- `userID`: A unique identifier for the person’s account with the relying party.

## See Also

### Creating credential assertion requests

- [createCredentialAssertionRequest(clientData:)](authenticationservices/asauthorizationwebbrowsersecuritykeypublickeycredentialprovider-8xc1s/createcredentialassertionrequest(clientdata:).md)
