Access scope for listing appInstallations

Access scope for listing appInstallations

sunbae
Shopify Partner
6 0 5

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.

Replies 4 (4)

CalD
Shopify Staff
140 22 36

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

daniellanger
Shopify Partner
10 0 13
JoshHighland
Shopify Partner
213 12 76

3 years later and it still doesn't work, but its listed in the API docs with no note of restrictions!

 

https://shopify.dev/docs/api/admin-graphql/2023-01/objects/appinstallation

SEO Manager - The all-in-One SEO solution for Shopify
A powerful suite of SEO tools that gets you found in Google results

- Install SEO Manager -