---
title: "SecKeychainGetUserInteractionAllowed(_:)"
framework: security
role: symbol
role_heading: Function
path: "security/seckeychaingetuserinteractionallowed(_:)"
---

# SecKeychainGetUserInteractionAllowed(_:)

Indicates whether keychain services functions that normally display a user interaction are allowed to do so.

## Declaration

```swift
func SecKeychainGetUserInteractionAllowed(_ state: UnsafeMutablePointer<DarwinBoolean>) -> OSStatus
```

## Parameters

- `state`: On return, a Boolean value indicating whether user interaction is permitted. If doc://com.apple.documentation/documentation/Swift/true, user interaction is allowed, and keychain services functions that display a user interface can do so as appropriate.

## Return Value

Return Value A result code. See Security Framework Result Codes.
