---
title: LogonSessionMacOS type | Wartiva GraphQL API
description: macOS-specific logon session information, read from the utmpx database. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/logon-session-mac-os.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `LogonSessionMacOS` type

macOS-specific logon session information, read from the utmpx database.

## Fields

| Field Name | Description |
|---|---|
| `tty` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The terminal device the session is attached to, such as `console` or `ttys000`. |
| `pid` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The process identifier (PID) of the logon session. |
| `utmpType` - [`PosixLogonType!`](https://wartiva.com/api-docs/types/posix-logon-type.html) | The value of utmp type (ut_type) field. |
| `remoteHost` - [`String`](https://wartiva.com/api-docs/types/string.html) | The remote host connected to the terminal if available. |

## Used by

- [`LogonSession`](https://wartiva.com/api-docs/types/logon-session.html) type: A user logon session observed on an Endpoint, identified by the username and the time the session started.
- [`LogonSessionOsSpecific`](https://wartiva.com/api-docs/types/logon-session-os-specific.html) union: OS-specific logon session union type.

## Example

### Example

```json
{
  "tty": "abc123",
  "pid": 987,
  "utmpType": "EMPTY",
  "remoteHost": "xyz789"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
