---
title: processIdentifier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsxpcconnection/processidentifier
---

# processIdentifier

The process ID (PID) of the connecting process.

## Declaration

```swift
var processIdentifier: pid_t { get }
```

## Discussion

Discussion This attribute may be used by the listener delegate to accept or reject connections.

## See Also

### Working with security attributes

- [auditSessionIdentifier](foundation/nsxpcconnection/auditsessionidentifier.md)
- [effectiveGroupIdentifier](foundation/nsxpcconnection/effectivegroupidentifier.md)
- [effectiveUserIdentifier](foundation/nsxpcconnection/effectiveuseridentifier.md)
