---
title: promptsUserIfNeeded
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsworkspace/openconfiguration/promptsuserifneeded
---

# promptsUserIfNeeded

A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user.

## Declaration

```swift
var promptsUserIfNeeded: Bool { get set }
```

## Discussion

Discussion When the value of this property is true, the system presents a user interface to request or display relevant information. The system waits until the user dismisses the UI before calling any relevant completion handlers. The default value of this property is true.
