<!--
{
  "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/oneTimeURLForParticipantID:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKShare(im)oneTimeURLForParticipantID:"
  },
  "title" : "oneTimeURLForParticipantID:"
}
-->

# oneTimeURLForParticipantID:

Invitation URLs that any receiver can use to claim the associated participantID and join the share.

```
- (NSURL *) oneTimeURLForParticipantID:(NSString *) participantID;
```

## Parameters

`participantID`

The [`participantID`](/documentation/CloudKit/CKShareParticipant/participantID) corresponding to the [`oneTimeURLParticipant()`](/documentation/CloudKit/CKShare/Participant/oneTimeURLParticipant()) added to the share.

## Discussion

Only available after a share record has been saved to the server for participants created via [`oneTimeURLParticipant()`](/documentation/CloudKit/CKShare/Participant/oneTimeURLParticipant()).
One-time URLs are stable, and tied to the associated participantIDs as long as the participant is part of the share.
Typically, a share owner provides a [`url`](/documentation/CloudKit/CKShare/url) directly to a user invited via their handle.
However, any user can also use a one-time URL in the same manner to fetch share metadata and accept the share.
After share acceptance, the one-time URL becomes functionally equivalent to the regular [`url`](/documentation/CloudKit/CKShare/url).

---

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)