<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFAuthorizationPluginView/willActivate(withUser:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFAuthorizationPluginView(im)willActivateWithUser:"
  },
  "title" : "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.

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

## Parameters

`inUserInformation`

A dictionary that contains the following information:

- [`SFAuthorizationPluginViewUserNameKey`](/documentation/SecurityInterface/SFAuthorizationPluginViewUserNameKey)

    An     <doc://com.apple.documentation/documentation/Foundation/NSString>     object containing the selected user’s name

- [`SFAuthorizationPluginViewUserShortNameKey`](/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

Your [`SFAuthorizationPluginView`](/documentation/SecurityInterface/SFAuthorizationPluginView) instance can use the user name to pre-populate a text field in the user interface.

---

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)