---
title: identifier
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspersistentstore/identifier
---

# identifier

The unique identifier for the persistent store.

## Declaration

```swift
var identifier: String! { get set }
```

## Discussion

Discussion The identifier is used as part of the managed object IDs for each object in the store. Special Considerations NSPersistentStore provides a default implementation to provide a globally unique identifier for the store instance.

## See Also

### Related Documentation

- [metadata](coredata/nspersistentstore/metadata.md)

### Managing Store Attributes

- [isReadOnly](coredata/nspersistentstore/isreadonly.md)
- [url](coredata/nspersistentstore/url.md)
