<!--
{
  "availability" : [
    "iOS: 3.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.6.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "ServiceManagement",
  "identifier" : "/documentation/ServiceManagement/SMJobSubmit(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Service Management"
    ],
    "preciseIdentifier" : "c:@F@SMJobSubmit"
  },
  "title" : "SMJobSubmit(_:_:_:_:)"
}
-->

# SMJobSubmit(_:_:_:_:)

Submits the specified job to the specified domain.

```
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
```

## Parameters

`domain`

The job’s domain (for example, [`kSMDomainSystemLaunchd`](/documentation/ServiceManagement/kSMDomainSystemLaunchd)).

`job`

A dictionary describing a job.

`auth`

An `AuthorizationRef` containing the [`kSMRightModifySystemDaemons`](/documentation/ServiceManagement/kSMRightModifySystemDaemons) right if the specified

    domain is [`kSMDomainSystemLaunchd`](/documentation/ServiceManagement/kSMDomainSystemLaunchd)    .

`outError`

An output reference to a `CFErrorRef` describing the specific error when submitting the job, or `NULL` if no error occurred. It’s the responsibility of the app to release the error reference. This argument can be `NULL`.

## Return Value

Returns true if the system successfully submits the job, otherwise `false`.

## Discussion

---

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)