Cannot access protected customer account

Im getting this error
This app is not approved to access the Customer object. See https://shopify.dev/docs/apps/launch/protected-customer-data for more details.

so im following these steps and no section protected customer account is shown

But when im trying to check another store, its showing

So what happend to me, and how to fix this.

Hey @BrownTheFlower :waving_hand: - would you happen to have a shop ID for both of the shops? We may need to set up a DM (in case we need to discuss shop-specific information), but I can take a quick look to see if there’s anything I can find that may point to why you’re unable to request customer data access on that particular shop - hope to hear from you soon!

of course, how can I DM to u

ah sorry i mean other app, and my app ids here
my main app id 227058581505 that not have section
and this is app still having section 207747055617

Look like it disappear cause im using custom distribution on custom app

Ah - thanks for clarifying @BrownTheFlower :slight_smile:

If your app is set up as a custom app and installed on a shop that is on the Grow plan or higher, you should be able to access all levels on Protected Customer Data:

You shouldn’t need to request access through the partner dashboard for custom apps.

If you can share the query you’re making and the shop ID/myshopify.com URL for the shop, I’m definitely happy to take a look to see why that error message is popping up if you’re able to confirm the app should meet all the access requirements.

Hope this helps!

Of course, this is my query to get customer phone num

query GetCustomer ($id: ID!) {
customer(id: $id) {
phone
}
}

Appreciate the information. I could access and retrieve the phone numbers this morning, but the errors returned within a few hours.

I’m off work now. I’ll check my app later and respond to this post

1 Like

Hello @Alan_G. I’ve double-checked. The admin API seems to be blocked, however, querying the customer account extension works without any problems.

Thanks @BrownTheFlower - have you set up your app as an “extension-only” app? If you’re making Admin API calls and receiving errors back, the most common reason for that is if you haven’t set up the admin access scopes (more info here).

If you’re able to share the shop ID/myshopify.com URL for the shop where you’re seeing the errors pop up though, I can take a look and see if the right access scopes have been added. Hope this helps a bit!

1 Like

this is my shop id: sdzbzi-10

1 Like

Thanks for sharing the shop ID @BrownTheFlower, really appreciate that.

I took a quick look at your app’s configuration and the shop, and I don’t see any obvious reasons why you’d be blocked from accessing customer data through the Admin API. For the most part, Customer UI Extensions work because they use the Customer Account API rather than the Admin API (unless you’re accessing orders).

Could you share your shopify.app.toml file configuration for your app that’s still having issues? I’m interested in seeing your access_scopes configuration, whether you have [access.admin] configured, and if your app might be set up as extension-only.

This will help me better understand why the Admin API calls are being blocked while your customer account extension is working.

Hope to hear from you soon!