---
title: appEntityIdentifier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsuseractivity/appentityidentifier
---

# appEntityIdentifier

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

## Declaration

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

## Discussion

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 App Intents.

## See Also

### Specifying app identifiers

- [targetContentIdentifier](foundation/nsuseractivity/targetcontentidentifier.md)
- [externalMediaContentIdentifier](foundation/nsuseractivity/externalmediacontentidentifier.md)
