GraphQL Permissions?

nicole-t
New Member
3 0 0

I would like to query publications, which needs the read_publications access scope.

 

I can't seem to find the read_publications access scope in our private apps' Admin API Permissions.

However, I did find that by installing Shopify's GraphiQL app, it asked for permissions which included  read_publications.

 

This is my GraphQL Query:

{ 
  publications (first: 5) {
    edges {
      node {
        id
        name
      }
    }
  }
}

It returns successfully with the GraphiQL app, but not with API requests using the private app's credentials (due to the missing permissions).

 

How can I set the read_publications access scope for private apps?

 

Thank you!

 

0 Likes
KarlOffenberger
Shopify Partner
1867 182 777

Unfortunately a known issue that as far as I am aware of hasn't been addressed or commented on by Shopify so far.

Liked this post? You might also like our fantastic upsell apps Candy Rack and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
0 Likes
Zameer
Shopify Staff
Shopify Staff
295 32 74

Hey Nicole,

 

Although visible in the GraphQL documentation, the `read_publications` access scope is currently only accessible by Shopify apps such as the GraphiQL App you mentioned.

 

We are currently in the process of determining an approval process for other apps which may require the scope. I would recommend you keep an eye on our developers changelog for any announcements on the topic.

j1991
New Member
3 0 0

@Zameer haven't seen any updates regarding this, I am also stuck on the same problem as the OP. I need read_publications scope but cannot seem to add them via the private apps console.

 

 

0 Likes
Kris_Doyle
Shopify Partner
86 0 19

Same here. Stuck on this one and can't move forward with what my user wants without the ability to get the publication IDs. I need to be able to request "read_publications/write_publications" for my app.

Or at least be able to somehow get the publication ID for the Online Store. I can get the published status from the REST API by requesting "published_at" and "published_scope", so why wouldn't it be available from the GraphQL API too?

Thanks very much!

0 Likes
juan3211
Shopify Partner
63 0 14

Almost two years !!!

 

Shopify, you are very quickly to solve our problems. 

0 Likes