Customer data not accessible in Checkout UI extension

Hi!

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?

Thanks!

1 Like

Hi @matthew.lesgrappes

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.

More details here: Work with protected customer data

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.

1 Like

@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.

In addition, I’m also seeing a similar issue with email address, the app working well before the new update, but its not working now

Hi folks - thanks for flagging this issue. Our team are investigating a resolution for this. I’m also moving this to the Dev Platform category too.

2 Likes

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.

We are also experiencing this. Looking forward for fix. Thanks folks!

The same is happening with our app when trying to start it locally.

Update: we’re identified what is causing this issue and working on a fix now.

3 Likes

Is there a timeline for a fix here?

It is proving quite tricky to test extensions on the local version of my app, but equally we are being asked to redeploy them for next-gen

Any update on this?

Am working on a new checkout ui extension. Have the same error, and luckily (after hours, grrr) I came across this post.

Please let us know when this is fixed, need to get this extension finished

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.

1 Like

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.

Update: seems like this is resolved for me and above issue is caused by CRITICAL Dev Dashboard Post-Migration Issue: Config-defined metafields inaccessible during `shopify app dev`

Hello :waving_hand:

Just upgraded to the new version, it’s working again as expected for me. Thanks for the quick fix guys!

1 Like

Hi, I’m using version 3.84.2 of the shopify CLI and still running into this issue :melting_face:
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?

1 Like

Did you manage to find solution? I’m having the issue 3.86.1 too :confused:

Hi, you need to use the version >3.84.2 i think, by the way i just deleted and reinstalled node modules to resolve the issue :grin:

1 Like

The node modules trick fixed it for me, thank you, you are a life savior :smiley: