<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKRecordZone/ID/init(zoneName:ownerName:)-22irr",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:So14CKRecordZoneIDC8CloudKitE8zoneName05ownerG0ABSS_SStcfc"
  },
  "title" : "init(zoneName:ownerName:)"
}
-->

# init(zoneName:ownerName:)

Creates a record zone ID with the specified name and owner.

```
convenience init(zoneName: String = CKRecordZone.ID.defaultZoneName, ownerName: String = CKCurrentUserDefaultName)
```

## Parameters

`zoneName`

The name that identifies the record zone. Zone names consist of up to 255 ASCII characters, and don’t start with an underscore. To specify the default zone of the current database, use  [`defaultZoneName`](/documentation/CloudKit/CKRecordZone/ID/defaultZoneName). This parameter must not be `nil` or an empty string.

`ownerName`

The user who creates the record zone. To specify the current user, use [`CKCurrentUserDefaultName`](/documentation/CloudKit/CKCurrentUserDefaultName). If you provide `nil` or an empty string for this parameter, the method throws an exception.

## Return Value

A new record zone ID.

---

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)