<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/AppStore/presentMultiSeatDataSharingConsentSheet(from:subscriptionGroupID:)-9gr5s",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit03AppA0O39presentMultiSeatDataSharingConsentSheet4from19subscriptionGroupIDySo16UIViewControllerC_SStYaKFZ"
  },
  "title" : "presentMultiSeatDataSharingConsentSheet(from:subscriptionGroupID:)"
}
-->

# presentMultiSeatDataSharingConsentSheet(from:subscriptionGroupID:)

Presents the sheet in which the group purchaser decides whether to share group information with you.

```
@MainActor static func presentMultiSeatDataSharingConsentSheet(from controller: UIViewController, subscriptionGroupID: String) async throws
```

## Parameters

`controller`

The view controller that StoreKit uses to present the sheet. The view controller needs to be in a window hierarchy.

`subscriptionGroupID`

The identifier of the subscription group for which you’re requesting consent.

## Discussion> Throws: ``doc://com.apple.storekit/documentation/StoreKit/StoreKitError/invalidPresentationContext`` if the view controller isn’t in a window hierarchy; ``doc://com.apple.storekit/documentation/StoreKit/StoreKitError/unsupported`` if the person isn’t signed in to the App Store or isn’t eligible, if you haven’t checked the eligibility since the sheet was last presented, or if an iOS app runs in visionOS; or another error if the system can’t present the sheet.

## Discussion

Use this method to ask the group purchaser of a multiseat subscription whether to share group information, the membership of their group, with you. Data sharing consent applies only to subscriptions that use Apple-hosted invitations. While the group purchaser shares group information, the group appears in the responses from <doc://com.apple.documentation/documentation/AppStoreServerAPI/Get-Customer-Groups> and <doc://com.apple.documentation/documentation/AppStoreServerAPI/Get-Group-Members> in the App Store Server API. The group purchaser can change the choice at any time in Manage Subscriptions.

Each time before you present the sheet, check [`multiSeatDataSharingConsentEligibility`](/documentation/StoreKit/Product/SubscriptionInfo/multiSeatDataSharingConsentEligibility-swift.property), and present the sheet only if the value is [`Product.SubscriptionInfo.MultiSeatDataSharingConsentEligibility.eligible`](/documentation/StoreKit/Product/SubscriptionInfo/MultiSeatDataSharingConsentEligibility-swift.enum/eligible).

The App Store records the choice and doesn’t return it to your app. The method returns after the group purchaser dismisses the sheet, whatever choice they make. To present the sheet in SwiftUI, use the <doc://com.apple.documentation/documentation/SwiftUI/View/multiSeatDataSharingConsentSheet(isPresented:subscriptionGroupID:onCompletion:)> view modifier.

For more information, see [Supporting multiseat purchases in your app](/documentation/StoreKit/supporting-multiseat-purchases-in-your-app).

---

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)