<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Collaboration",
  "identifier" : "/documentation/Collaboration/CBGroupIdentity/init(posixGID:authority:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Collaboration"
    ],
    "preciseIdentifier" : "c:objc(cs)CBGroupIdentity(cm)groupIdentityWithPosixGID:authority:"
  },
  "title" : "init(posixGID:authority:)"
}
-->

# init(posixGID:authority:)

Returns the group identity with the given POSIX GID in the specified identity authority.

```
init?(posixGID gid: gid_t, authority: CBIdentityAuthority)
```

## Parameters

`gid`

The GID of the group identity you are searching for.

`authority`

An identity authority in which to search for the group identity.

## Return Value

The group identity object with the given GID in the specified identity authority, or `nil` if no identity exists with the specified GID.

## See Also

  [Identity Services Programming Guide](https://developer.apple.com/library/archive/documentation/Networking/Conceptual/IdentityServices_ProgGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004490)



---

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)