---
title: "configurationName(forStoreIdentifier:)"
framework: swiftdata
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+, swift 5.9+]
path: "swiftdata/modelcontainer/configurationname(forstoreidentifier:)"
---

# configurationName(forStoreIdentifier:)

Returns the configuration name associated with the given on-disk store identifier.

## Declaration

```swift
func configurationName(forStoreIdentifier identifier: String) -> String?
```

## Parameters

- `identifier`: A store identifier string, for example from PersistentIdentifier.storeIdentifier or a history transaction’s store identifier.

## Return Value

Return Value The name of the ModelConfiguration that backs the given store, or nil if no store with that identifier exists in this container or if invalidate() has been called.

## Discussion

Discussion Use this when you already have a store identifier — such as PersistentIdentifier.storeIdentifier from a fetched object or a store identifier from a history transaction — and need to map it back to the human-readable configuration name that produced that store.
