---
title: "provisionCredential(configurationUUID:name:)"
framework: secureelementcredential
role: symbol
role_heading: Instance Method
path: "secureelementcredential/credentialsession/provisioncredential(configurationuuid:name:)"
---

# provisionCredential(configurationUUID:name:)

Creates a credential in the Secure Element.

## Declaration

```swift
func provisionCredential(configurationUUID: UUID, name: String) async throws -> CredentialSession.Credential
```

## Parameters

- `configurationUUID`: A UUID corresponding to an product configuration configured on the https://register.apple.com/login portal. The system uses the corresponding product configuration to provision the instance associated with the created credential. The UUID is opaque to the device.
- `name`: A friendly name assigned for ease of identification the provisioned credential. The name is opaque to the device.

## Mentioned in

Accessing and using secure element credentials

## Return Value

Return Value A CredentialSession.Credential, initialized with the CredentialSession.Credential.State.installationPending state.

## Discussion

Discussion This method installs into the Secure Element an applet bundle that you’ve submitted through the Apple Business Register portal. note: If there is not enough space in the Secure Element to provision the new credential, the system shows a space management UI over the current app. A person using the device can use this interface to remove other credentials to free up space or cancel the provisioning attempt.

## See Also

### Managing a credential

- [deleteCredential(_:)](secureelementcredential/credentialsession/deletecredential(_:).md)
