Re: Permissions issues with customer_read_customers in account UI extension

Solved

Permissions issues with customer_read_customers in account UI extension

Kalen_Jordan
Shopify Partner
779 36 139

Following the example here to fetch data about the logged in customer from a new customer account UI compnent:

https://shopify.dev/docs/api/customer-account-ui-extensions/unstable/apis/customer-account-api

 

Screenshot 2024-08-07 at 3.42.13 PM.png

 

I've got the customer_read_customers scope in shopify.app.toml and I'm also seeing it in the partner dashboard, and I have api_access = true and network_access = true in shopify.extension.toml

 

It's a public app that's not released yet.

 

In both the frontend and in graphiql I'm still hitting the permissions error:

 

Screenshot 2024-08-07 at 3.40.19 PM.png

 

Screenshot 2024-08-07 at 3.40.07 PM.png

Additionally, I saw it mentioned here that you should be able to see your access scopes in graphql, but that's not returning anything for me:

 

Screenshot 2024-08-07 at 3.39.36 PM.png

Accepted Solution (1)

Kalen_Jordan
Shopify Partner
779 36 139

This is an accepted solution.

You need to uninstall and reinstall the app.

View solution in original post

Reply 1 (1)

Kalen_Jordan
Shopify Partner
779 36 139

This is an accepted solution.

You need to uninstall and reinstall the app.