<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_message_t/action",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@SA@es_message_t@FI@action"
  },
  "title" : "action"
}
-->

# action

The action monitored by Endpoint Security.

```
var action: es_message_t.__Unnamed_union_action
```

## Discussion

The action is a `union` of an [`es_event_id_t`](/documentation/EndpointSecurity/es_event_id_t) named `auth` and an [`es_result_t`](/documentation/EndpointSecurity/es_result_t) named `notify`. Use the [`action_type`](/documentation/EndpointSecurity/es_message_t/action_type) field to determine which kind of action this message represents.

---

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)