---
title: "presentMultiSeatDataSharingConsentSheet(from:subscriptionGroupID:)"
framework: StoreKit
role: symbol
role_heading: Type Method
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+]
path: "storekit/appstore/presentmultiseatdatasharingconsentsheet(from:subscriptiongroupid:)-9gr5s"
---

# presentMultiSeatDataSharingConsentSheet(from:subscriptionGroupID:)

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

## Declaration

```swift
@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.

## Mentioned in

Supporting multiseat purchases in your app

## Discussion

Discussion note: StoreKitError.invalidPresentationContext if the view controller isn’t in a window hierarchy; 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 Get Customer Groups and 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, and present the sheet only if the value is Product.SubscriptionInfo.MultiSeatDataSharingConsentEligibility.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 multiSeatDataSharingConsentSheet(isPresented:subscriptionGroupID:onCompletion:) view modifier. For more information, see Supporting multiseat purchases in your app.

## See Also

### Requesting data sharing consent

- [presentMultiSeatDataSharingConsentSheet(from:subscriptionGroupID:)](storekit/appstore/presentmultiseatdatasharingconsentsheet(from:subscriptiongroupid:)-3j1t4.md)
- [multiSeatDataSharingConsentEligibility](storekit/product/subscriptioninfo/multiseatdatasharingconsenteligibility-swift.property.md)
- [multiSeatDataSharingConsentSheet(isPresented:subscriptionGroupID:onCompletion:)](swiftui/view/multiseatdatasharingconsentsheet(ispresented:subscriptiongroupid:oncompletion:).md)
