---
title: "canModifyManagedObjects(in:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nspersistentcloudkitcontainer/canmodifymanagedobjects(in:)"
---

# canModifyManagedObjects(in:)

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

## Declaration

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

## Parameters

- `store`: The persistent store.

## Return Value

Return Value true if the user can modify records in the persistent store’s CloudKit database; otherwise, false.

## Discussion

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:) and canDeleteRecord(forManagedObjectWith:) methods instead. This method always returns true for persistent stores that manage the user’s private CloudKit database.

## See Also

### Checking Permissions

- [canUpdateRecord(forManagedObjectWith:)](coredata/nspersistentcloudkitcontainer/canupdaterecord(formanagedobjectwith:).md)
- [canDeleteRecord(forManagedObjectWith:)](coredata/nspersistentcloudkitcontainer/candeleterecord(formanagedobjectwith:).md)
