---
title: "init(posixUID:authority:)"
framework: Collaboration
role: symbol
role_heading: Initializer
platforms: [macOS 10.5+]
path: "collaboration/cbuseridentity/init(posixuid:authority:)"
---

# init(posixUID:authority:)

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

## Declaration

```swift
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

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

## See Also

### Using UIDs

- [posixUID](collaboration/cbuseridentity/posixuid.md)
