<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "macOS: 15.2.0 -",
    "tvOS: 18.2.0 -",
    "visionOS: 2.2.0 -",
    "watchOS: 11.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserActivity/appEntityIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So14NSUserActivityC10AppIntentsE19appEntityIdentifierAC0fG0VSgvp"
  },
  "title" : "appEntityIdentifier"
}
-->

# appEntityIdentifier

The identifier of an app entity that you associate with the user activity.

```
var appEntityIdentifier: EntityIdentifier? { get set }
```

## Discussion

By associating an app entity with a user activity, you make the entity available to Siri and Apple Intelligence.
To clear the association with the app entity, set `appEntityIdentifier` to `nil`.

For more information, refer to <doc://com.apple.documentation/documentation/appintents/Making-onscreen-content-available-to-siri-and-apple-intelligence> and <doc://com.apple.documentation/documentation/AppIntents>.

---

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)