---
title: "presentMultiSeatDataSharingConsentSheet(from:subscriptionGroupID:)"
framework: StoreKit
role: symbol
role_heading: Type Method
platforms: [macOS 27.3+]
path: "storekit/appstore/presentmultiseatdatasharingconsentsheet(from:subscriptiongroupid:)-3j1t4"
---

# 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 window: NSWindow, subscriptionGroupID: String) async throws
```

## Parameters

- `window`: The window that StoreKit uses to present the sheet. The window needs to be visible.
- `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 window isn’t visible; StoreKitError.unsupported if the person isn’t signed in to the App Store, isn’t eligible, or you haven’t checked the eligibility since the sheet was last presented; 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:)-9gr5s.md)
- [multiSeatDataSharingConsentEligibility](storekit/product/subscriptioninfo/multiseatdatasharingconsenteligibility-swift.property.md)
- [multiSeatDataSharingConsentSheet(isPresented:subscriptionGroupID:onCompletion:)](swiftui/view/multiseatdatasharingconsentsheet(ispresented:subscriptiongroupid:oncompletion:).md)
