<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentCloudKitContainer/canUpdateRecord(forManagedObjectWith:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentCloudKitContainer(im)canUpdateRecordForManagedObjectWithID:"
  },
  "title" : "canUpdateRecord(forManagedObjectWith:)"
}
-->

# canUpdateRecord(forManagedObjectWith:)

Returns a Boolean value that indicates whether the user can modify the managed object’s underlying CloudKit record.

```
func canUpdateRecord(forManagedObjectWith objectID: NSManagedObjectID) -> Bool
```

## Parameters

`objectID`

The ID of the managed object.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the user can modify the CloudKit record; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method returns <doc://com.apple.documentation/documentation/Swift/true> if [`canModifyManagedObjects(in:)`](/documentation/CoreData/NSPersistentCloudKitContainer/canModifyManagedObjects(in:)) returns <doc://com.apple.documentation/documentation/Swift/true> and any of the following conditions are true:

- `objectID` is a temporary object identifier.
- The persistent store that contains the managed object isn’t using CloudKit.
- The persistent store manages the user’s private database.
- The persistent store manages the public database, and the user owns the underlying record or Core Data has yet to save the managed object to iCloud.
- The persistent store manages the shared database, and the user has the necessary permissions to update the managed object’s underlying record. For more information, see <doc://com.apple.documentation/documentation/CloudKit/CKShare/ParticipantPermission>.

---

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)