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

# init(posixUID:authority:)

Returns the user identity with the given POSIX UID in the specified identity authority.

```
init?(posixUID uid: uid_t, authority: CBIdentityAuthority)
```

## Parameters

`uid`

The UID of the identity you are searching for.

`authority`

The identity authority to search.

## Return Value

The user identity with the given UID in the specified identity authority, or `nil` if no identity exists with the specified UID.

---

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)