---
title: "resolveAccountType(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insearchforaccountsintenthandling/resolveaccounttype(for:with:)"
---

# resolveAccountType(for:with:)

Resolves the account type to look for in a search.

## Declaration

```swift
optional func resolveAccountType(for intent: INSearchForAccountsIntent, with completion: @escaping @Sendable (INAccountTypeResolutionResult) -> Void)
```

```swift
optional func resolveAccountType(for intent: INSearchForAccountsIntent) async -> INAccountTypeResolutionResult
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this question to resolve any questions about the account type to look for in a search. Use this method to examine the accountType property of the intent object. Return a successful resolution if you can search for accounts of the specified type.

## See Also

### Resolving the Intent Parameters

- [resolveAccountNickname(for:with:)](intents/insearchforaccountsintenthandling/resolveaccountnickname(for:with:).md)
- [resolveOrganizationName(for:with:)](intents/insearchforaccountsintenthandling/resolveorganizationname(for:with:).md)
- [resolveRequestedBalanceType(for:with:)](intents/insearchforaccountsintenthandling/resolverequestedbalancetype(for:with:).md)
