---
title: "identifier(_:)"
framework: swiftdata
role: symbol
role_heading: Type Method
path: "swiftdata/modelconfiguration/groupcontainer-swift.struct/identifier(_:)"
---

# identifier(_:)

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

## Declaration

```swift
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.

## See Also

### Getting discovery options

- [automatic](swiftdata/modelconfiguration/groupcontainer-swift.struct/automatic.md)
- [none](swiftdata/modelconfiguration/groupcontainer-swift.struct/none.md)
