<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_new_client_result_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@EA@es_new_client_result_t"
  },
  "title" : "es_new_client_result_t"
}
-->

# es_new_client_result_t

The result of an attempt to create a new client.

```
struct es_new_client_result_t
```

## Topics

### Success

[`ES_NEW_CLIENT_RESULT_SUCCESS`](/documentation/EndpointSecurity/ES_NEW_CLIENT_RESULT_SUCCESS)

Endpoint Security successfully created the new client.

### Errors

[`ES_NEW_CLIENT_RESULT_ERR_INTERNAL`](/documentation/EndpointSecurity/ES_NEW_CLIENT_RESULT_ERR_INTERNAL)

Communication with the Endpoint Security subsystem failed.

[`ES_NEW_CLIENT_RESULT_ERR_INVALID_ARGUMENT`](/documentation/EndpointSecurity/ES_NEW_CLIENT_RESULT_ERR_INVALID_ARGUMENT)

The attempt to create a new client contained one or more invalid arguments.

[`ES_NEW_CLIENT_RESULT_ERR_NOT_ENTITLED`](/documentation/EndpointSecurity/ES_NEW_CLIENT_RESULT_ERR_NOT_ENTITLED)

The caller isn’t properly entitled to connect to Endpoint Security.

[`ES_NEW_CLIENT_RESULT_ERR_NOT_PERMITTED`](/documentation/EndpointSecurity/ES_NEW_CLIENT_RESULT_ERR_NOT_PERMITTED)

The caller isn’t permitted to connect to Endpoint Security.

[`ES_NEW_CLIENT_RESULT_ERR_NOT_PRIVILEGED`](/documentation/EndpointSecurity/ES_NEW_CLIENT_RESULT_ERR_NOT_PRIVILEGED)

The caller isn’t running as root.

[`ES_NEW_CLIENT_RESULT_ERR_TOO_MANY_CLIENTS`](/documentation/EndpointSecurity/ES_NEW_CLIENT_RESULT_ERR_TOO_MANY_CLIENTS)

The caller has reached the maximum allowed number of simultaneously connected clients.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)