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

# resolveOrganizationName(for:with:)

Resolves the organization name to use during a search.

## Declaration

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

```swift
optional func resolveOrganizationName(for intent: INSearchForAccountsIntent) async -> INSpeakableStringResolutionResult
```

## 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 method to resolve any questions about the organization name used during a search. Use this method to examine the organizationName property of the intent object. Return a resolution of success if you can perform the search using the specified organization name. If the property does not contain a value, return a resolution of success or not required based if you can use other information in the intent object to perform the search.

## See Also

### Resolving the Intent Parameters

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