<!--
{
  "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/CKDatabase/Scope/public",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:@E@CKDatabaseScope@CKDatabaseScopePublic"
  },
  "title" : "CKDatabase.Scope.public"
}
-->

# CKDatabase.Scope.public

The public database.

```
case `public`
```

## Discussion

Records in a public database:

- By default are world readable, owner writable.
- Can be locked down by Roles, a process done in the Developer Portal, a web interface.  Roles are not present in the client API.
- Are visible to the application developer via the Developer Portal.
- Do not contribute to the owner’s iCloud account storage quota.

---

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)