<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFFileSecurityGetGroup(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFFileSecurityGetGroup"
  },
  "title" : "CFFileSecurityGetGroup(_:_:)"
}
-->

# CFFileSecurityGetGroup(_:_:)

Gets the group ID associated with a `CFFileSecurityRef` object

```
func CFFileSecurityGetGroup(_ fileSec: CFFileSecurity!, _ group: UnsafeMutablePointer<gid_t>!) -> Bool
```

## Parameters

`fileSec`

The `CFFileSecurityRef` object.

`group`

The address of an integer of type `gid_t`.

## Return Value

Returns `true` if the group ID was stored in the address pointed to by `group`, or `false` if there is no address property associated with this `CFFileSecurityRef` object.

## Discussion

---

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)