<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKShare/Participant/oneTimeURLParticipant()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKShareParticipant(cm)oneTimeURLParticipant"
  },
  "title" : "oneTimeURLParticipant()"
}
-->

# oneTimeURLParticipant()

Generate a unique URL for inviting a participant without knowing their handle

```
class func oneTimeURLParticipant() -> Self
```

## Discussion

When a participant’s email address / phone number / userRecordID isn’t known up-front, you can add a [`oneTimeURLParticipant()`](/documentation/CloudKit/CKShare/Participant/oneTimeURLParticipant())
to the share. Once you save the share, you can get a custom invitation link or one-time URL for the added participant via [`oneTimeURL(for:)`](/documentation/CloudKit/CKShare/oneTimeURL(for:)).
Any recipient user can use this custom link to fetch share metadata and accept the share.

Note that a one-time URL participant in the [`CKShare.ParticipantAcceptanceStatus.pending`](/documentation/CloudKit/CKShare/ParticipantAcceptanceStatus/pending) state has empty [`nameComponents`](/documentation/CloudKit/CKUserIdentity/nameComponents)
and a nil [`lookupInfo`](/documentation/CloudKit/CKUserIdentity/lookupInfo-swift.property).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)