<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSearchForAccountsIntent/init(accountNickname:accountType:organizationName:requestedBalanceType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSearchForAccountsIntent(im)initWithAccountNickname:accountType:organizationName:requestedBalanceType:"
  },
  "title" : "init(accountNickname:accountType:organizationName:requestedBalanceType:)"
}
-->

# init(accountNickname:accountType:organizationName:requestedBalanceType:)

Initializes the intent object with the specified search parameters.

```
init(accountNickname: INSpeakableString?, accountType: INAccountType, organizationName: INSpeakableString?, requestedBalanceType: INBalanceType)
```

## Parameters

`accountNickname`

The nickname that the user assigned to the account in your app. Account nicknames make it easier for the user to refer to those accounts in Siri. For example, a user’s main checking account might be called “checking”.

`accountType`

The type of the account. For a list of possible values, see [`INAccountType`](/documentation/Intents/INAccountType).

`organizationName`

The name of an organization attached to an account.

`requestedBalanceType`

The type of balance requested by the user. Use this information to help identify the account to return. For a list of possible values, see [`INBalanceType`](/documentation/Intents/INBalanceType).

## Return Value

An initialized intent object or `nil` if the object could not be created.

## Discussion

Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user asks for account information. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

---

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)