We have a Checkout UI extension which need access to the customer shipping address and other personal data. This extension is part of a private custom app, it is not distributed on the Shopify App store but with a private install link. So based on my understanding of the documentation, we shouldn’t need to ask for specific permissions to access this data.
It was actually working perfectly until the migration to the new dev dashboard. Before that we could see and work on the extension using the Shopify CLI and it’s dev environement with the shopify app dev command. No scopes issues at all. The extension is still working properly in production by the way.
But now, in the Shopify CLI dev environment, when trying to display the extension in the checkout, we get a scope error while trying to use the useShippingAddress hook for example. Here’s the full error :
Uncaught ScopeNotGrantedError: Using buyer identity requires having personal customer data permissions granted to your app.
We’ve browsed the partner and dev dashboards to see if we still needed to allow some specific permissions there. We couldn’t find anything about protected custom data since the app use a custom distribution.
We’re stuck and can’t work properly on the extension, would anyone have any clue about this issue?
Development apps and custom apps still need to apply for Customer Protected Data access.
You’ll need to answer the questionnaire, and since your app isn’t published on the app store, then the permissions to the customer data will be granted immediately.
Hi Dylan, thanks for your answer. However, since I already chose a distribution (the “custom” one), I can’t see the section in the partner nor dev dashboard to request such access.
And I’d like to add that before the migration to the new dev dashboard, I was using the exact same app with the exact same configuration but had no issues.
@matthew.lesgrappes@Dylan
I’m running into the same issue after migrating to dev dashboard, everything was working fine previously.
In addition, I’m also seeing a similar issue with shipping address: Uncaught ScopeNotGrantedError: Using shipping address requires having shipping address permissions granted to your app.
Hi Liam, thank you very much! If it can help a bit, I’ve tried to create a brand new Partner account, with a new development store and all and I got it working. But it seems so because I’m still on the old platform even with a brand new account, I don’t have access to the dev dashboard.
But yeah, can’t get it to work with our existing Partner account, no matter what I try.
Update: We’ve just released a new version for the CLI, 3.84.2 which should resolve the checkout scopes issue. You can run shopify upgrade to apply the new version.
Updated to 3.84.2, the error is gone, but extension still doesn’t render on thank you page. There are no errors in console. My extension has two targets: in checkout and on thank you page. The checkout one renders just fine.
Hi, I’m using version 3.84.2 of the shopify CLI and still running into this issue
I get the error “ScopeNotGrantedError: Using buyer identity requires having personal customer data permissions granted to your app.” and similar for other hooks that require customer-specific data in checkout ui extensions. The issue only happens when running the app locally, and before the migration worked fine. We already configured the scopes, and re-deployed the app after the migration. The app uses custom distribution.
Is anyone else still seeing this or knows how to resolve it?