Access scope for listing appInstallations

sunbae
Shopify Partner
6 0 3

I'm trying to get all the apps of a shop using Shopify Graph QL just like this.

 

appInstallations(first: 10) {
  edges {
    node {
      id
    }
  }
}

 

And It gives me access denied. Is this already deprecated or which access scope should I get from OAuth

If anyone know about this please let me know, Thanks.

0 Likes
CalD
Shopify Staff
Shopify Staff
90 8 12

Hi @sunbae,

At this time, the GraphiQL app is the only API client that can request the appropriate permission to see appInstallations for every installed app. You can currently see your own appInstallation via currentAppInstallation field on the QueryRoot object, however, e.g.

{
  currentAppInstallation {
    id
    accessScopes {
      handle
    }
    activeSubscriptions {
      id
      currentPeriodEnd
    }
  }
}

 

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes