<!--
{
  "availability" : [
    "iOS: 17.5.0 -",
    "iPadOS: 17.5.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AutomaticAssessmentConfiguration",
  "identifier" : "/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration/setConfiguration(_:for:)-2tjgb",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Automatic Assessment Configuration"
    ],
    "preciseIdentifier" : "c:objc(cs)AEAssessmentConfiguration(im)setConfiguration:forApplication:"
  },
  "title" : "setConfiguration(_:for:)"
}
-->

# setConfiguration(_:for:)

Adds an app to the list of apps available during an assessment.

```
func setConfiguration(_ configuration: AEAssessmentParticipantConfiguration, for application: AEAssessmentApplication)
```

## Parameters

`configuration`

The configuration of the secondary app.

`application`

The app that you want to configure.

## Discussion

Use this method to make an app besides your own available during an assessment. Create a representation of the app that you want to allow as an [`AEAssessmentApplication`](/documentation/AutomaticAssessmentConfiguration/AEAssessmentApplication) instance, and the configuration for that app using an [`AEAssessmentParticipantConfiguration`](/documentation/AutomaticAssessmentConfiguration/AEAssessmentParticipantConfiguration) instance:

```swift
let calculator = AEAssessmentApplication(bundleIdentifier: "com.apple.calculator")
let calculatorConfig = AEAssessmentParticipantConfiguration()
calculatorConfig.allowsNetworkAccess = false // Calculator doesn't need the network.
```

Use the app and its configuration to create an assessment configuration, and either create an assessment session with that, or update an existing session as shown below:

```swift
let configuration = AEAssessmentConfiguration()
configuration.setConfiguration(calculatorConfig, for: calculator)
session.update(to: configuration)
```

You can get a list of the currently allowed apps by accessing the [`configurationsByApplication`](/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration/configurationsByApplication) property. You can disallow a previously allowed app by using the `AEAssessmentConfiguration/remove(_:)` method.

---

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)