<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AutomaticAssessmentConfiguration",
  "identifier" : "/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration/allowsUserScriptExecution",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Automatic Assessment Configuration"
    ],
    "preciseIdentifier" : "c:objc(cs)AEAssessmentConfiguration(py)allowsUserScriptExecution"
  },
  "title" : "allowsUserScriptExecution"
}
-->

# allowsUserScriptExecution

A Boolean value that indicates whether to allow user script execution during an assessment.

```
var allowsUserScriptExecution: Bool { get set }
```

## Discussion

User scripts, such as AppleScripts or Automator workflows, can automate tasks on the system. An assessment session disables user script execution by default, but you can allow it by setting [`allowsUserScriptExecution`](/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration/allowsUserScriptExecution) to `true` in the [`AEAssessmentConfiguration`](/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration) instance that you use to initialize a session.

---

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)