<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/ContactResolver/userIdentity()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels15ContactResolverP12userIdentityAA08ResolvedE0VyF"
  },
  "title" : "userIdentity()"
}
-->

# userIdentity()

Returns the information for the current contact.

```
func userIdentity() -> ResolvedContact
```

## Return Value

A resolved contact structure with information your app manages. Fill this structure with information you
manage directly such as app-specific account details. You can also include information from sources to which your app
has approved access such as the Contacts framework.

---

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)