App-owned metafields accessible on Customer Account UI but not in Admin

Hello,

For my Customer Account extension, I’m using app-owned metafields, which I fetch like this:

const response = await fetch(
  'shopify:customer-account/api/2025-10/graphql.json',
  {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      query: `
        query {
          shop {
            metafields(identifiers: [
              { 
                namespace: "$app:xxxxx",
                key: "xxxxxx"
              }
            ]) {
              namespace
              key
              value
            }
          }
        }
      `,
    }),
  }
);

This works perfectly on the Customer Account UI (front).
However, it does not work at all in the Back Office / Admin.
App-owned metafields simply cannot be retrieved there.

Does anyone know why app-owned metafields are accessible from the Customer Account UI but not from the Admin?
Is this a limitation of the Customer Account API, or is there another recommended way to retrieve app-owned metafields on the Admin side?

Thanks in advance for any insights!

The Customer Account API is a customer-facing API, it isn’t meant to be used in the admin. You should be able to use the Admin API in admin UI extensions, though, see docs here.

Hello @Kenza_Iraki
Thank you for your help. I’ll look into it.