<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/EntityOwnership",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents15EntityOwnershipV"
  },
  "title" : "EntityOwnership"
}
-->

# EntityOwnership

A type that represents the ownership and sharing characteristics of an app entity.

```
struct EntityOwnership
```

## Overview

The [`EntityOwnership`](/documentation/AppIntents/EntityOwnership) structure provides flag-based ownership information.
Specify a single state, or combine multiple states using an
<doc://com.apple.documentation/documentation/Swift/OptionSet>,
as shown in the following example:

```swift
// Single ownership and sharing state:
var ownership: EntityOwnership { .shared }

// or

// Combined ownership and sharing states:
var ownership: EntityOwnership { [.shared, .public] }
```

## Topics

### Scoping entity ownership and sharing

[`public`](/documentation/AppIntents/EntityOwnership/public)

A state that indicates the entity represents data a person shares publicly.

[`shared`](/documentation/AppIntents/EntityOwnership/shared)

A state that indicates a person shares the entity with specific collaborators.

[`unknown`](/documentation/AppIntents/EntityOwnership/unknown)

A state that indicates that entity ownership or sharing status is unknown or unspecified.

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)