<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKShare/publicPermission",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKShare(py)publicPermission"
  },
  "title" : "publicPermission"
}
-->

# publicPermission

The permission for anyone with access to the share’s URL.

```
var publicPermission: CKShare.ParticipantPermission { get set }
```

## Discussion

Setting this property’s value to be more permissive than [`CKShare.ParticipantPermission.none`](/documentation/CloudKit/CKShare/ParticipantPermission/none) allows any user with the share’s URL to join. CloudKit removes all public participants when you save the share if you set the property’s value to [`CKShare.ParticipantPermission.none`](/documentation/CloudKit/CKShare/ParticipantPermission/none).

The default value is [`CKShare.ParticipantPermission.none`](/documentation/CloudKit/CKShare/ParticipantPermission/none)

---

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)