<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/GroupID",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System7GroupIDV"
  },
  "title" : "GroupID"
}
-->

# GroupID

A Swift wrapper of the C `gid_t` type.

```
@frozen struct GroupID
```

## Topics

### Initializers

[`init(CInterop.GroupID)`](/documentation/System/GroupID/init(_:))

Creates a strongly-typed `GroupID` from the raw C value.

[`init(rawValue: CInterop.GroupID)`](/documentation/System/GroupID/init(rawValue:))

Creates a strongly-typed `GroupID` from the raw C value.

### Instance Properties

[`var rawValue: CInterop.GroupID`](/documentation/System/GroupID/rawValue)

The raw C `gid_t`.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Copyable`](/documentation/Swift/Copyable)

[`Encodable`](/documentation/Swift/Encodable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Decodable`](/documentation/Swift/Decodable)

---

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)