Access scope for listing appInstallations

Highlighted
Shopify Partner
6 0 2

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
Highlighted
Shopify Staff
Shopify Staff
54 6 8

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
    }
  }
}

 

Callum | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes