<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "swift: 5.9.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftData",
  "identifier" : "/documentation/SwiftData/ModelConfiguration/GroupContainer-swift.struct/identifier(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftData"
    ],
    "preciseIdentifier" : "s:9SwiftData18ModelConfigurationV14GroupContainerV10identifieryAESSFZ"
  },
  "title" : "identifier(_:)"
}
-->

# identifier(_:)

Tells SwiftData to use the specified group container as the root location for
the app’s persistent storage.

```
static func identifier(_ groupName: String) -> ModelConfiguration.GroupContainer
```

## Parameters

`groupName`

The identifier of the group container to use. You find these in
the App Groups capabilities section of your Xcode project. For more
information, see <doc://com.apple.documentation/documentation/Xcode/configuring-app-groups>.

---

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)