<!--
{
  "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/canModifyManagedObjects(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentCloudKitContainer(im)canModifyManagedObjectsInStore:"
  },
  "title" : "canModifyManagedObjects(in:)"
}
-->

# canModifyManagedObjects(in:)

Returns a Boolean value that indicates whether the user can modify the specified persistent store.

```
func canModifyManagedObjects(in store: NSPersistentStore) -> Bool
```

## Parameters

`store`

The persistent store.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the user can modify records in the persistent store’s CloudKit database; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Use this method to determine whether the user is able to write any records to the CloudKit database. To find out if the user can modify a specific object, use the [`canUpdateRecord(forManagedObjectWith:)`](/documentation/CoreData/NSPersistentCloudKitContainer/canUpdateRecord(forManagedObjectWith:)) and [`canDeleteRecord(forManagedObjectWith:)`](/documentation/CoreData/NSPersistentCloudKitContainer/canDeleteRecord(forManagedObjectWith:)) methods instead.

This method always returns <doc://com.apple.documentation/documentation/Swift/true> for persistent stores that manage the user’s private CloudKit database.

---

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)