---
title: "willActivate(withUser:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfauthorizationpluginview/willactivate(withuser:)"
---

# willActivate(withUser:)

Tells the authorization plug-in that its user interface is about to be made active by the Apple-provided Security Agent.

## Declaration

```swift
func willActivate(withUser inUserInformation: [AnyHashable : Any]!)
```

## Parameters

- `inUserInformation`: A dictionary that contains the following information: doc://com.apple.securityinterface/documentation/SecurityInterface/SFAuthorizationPluginViewUserNameKey An doc://com.apple.documentation/documentation/Foundation/NSString object containing the selected user’s name doc://com.apple.securityinterface/documentation/SecurityInterface/SFAuthorizationPluginViewUserShortNameKey An doc://com.apple.documentation/documentation/Foundation/NSString object containing the selected user’s short name Note: inUserInformation may be nil.

## Discussion

Discussion Your SFAuthorizationPluginView instance can use the user name to pre-populate a text field in the user interface.

## See Also

### Configuring the User Interface

- [didActivate()](securityinterface/sfauthorizationpluginview/didactivate().md)
- [didDeactivate()](securityinterface/sfauthorizationpluginview/diddeactivate().md)
