# `GSShapeGroup.groupId`

*Instance Property*

The per-layer identifier of the group.

## Declaration

```swift
var groupId: GSShapeGroup.ID { get set }
```

```objc
@property (strong) GSShapeGroupID groupId;
```

```python
groupId() -> GSShapeGroupID
setGroupId_(groupId: GSShapeGroupID)
```

## Discussion

The empty string is reserved for the root group.

## See Also

### Identity

- [`GSShapeGroupID.GSShapeGroupIDRoot`](/Core/GlyphsCore/GSShapeGroup/GSShapeGroupID/GSShapeGroupIDRoot) — The group ID reserved for the root group of a layer.
- [`GSShapeGroup.root`](/Core/GlyphsCore/GSShapeGroup/root) — Whether the group is the root of the shape tree.

