<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ServiceManagement",
  "identifier" : "/documentation/ServiceManagement/kSMErrorAuthorizationFailure",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Service Management"
    ],
    "preciseIdentifier" : "c:@Ea@kSMErrorInternalFailure@kSMErrorAuthorizationFailure"
  },
  "title" : "kSMErrorAuthorizationFailure"
}
-->

# kSMErrorAuthorizationFailure

The authorization requested failed.

```
var kSMErrorAuthorizationFailure: Int { get }
```

## Discussion

The request requires authorization (such as, adding a job to the [`kSMDomainSystemLaunchd`](/documentation/ServiceManagement/kSMDomainSystemLaunchd)), but the `AuthorizationRef` doesn’t contain the required right.

---

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)