GraphQL does not work when logged in as collaborator. Access Denied error

rajasekar_b
Tourist
9 2 0

Hi Shopify Techies,
I'm developing an app. I have a requirement to check whether the merchant using the app has a valid subscription to the app. I use GraphQL query - query { currentAppInstallation { activeSubscriptions { id name status test }}}. This query works when merchant is logged is with his credentials. When the app is accessed through a Collaborator account (with all permissions set), it throws access denied error when the graphQL end point invoked. 

1. What should I do to enable Collaborators to use my app successfully.

2. What is the recommended way to check if Merchant has valid subscription while he/she is using the app.

 

Thanks in advance,

Raj.

0 Likes