Shopify just tightened privacy around the displayName field. Starting with the current API version, the field will no longer fall back to a customer’s email or phone number unless your app has been granted access to those protected data points. If the fallback value is hidden, the API now returns the placeholder “•••”. This seemingly small tweak can break any workflow that expects a real email or phone number from displayName, especially during customer merges or when showing contact info in admin‑side apps.
What Changed in displayName
Previously, displayName followed a simple hierarchy: first‑name + last‑name → email → phone. An app only needed the "customer name" permission to read the field, even when the returned value was an email or phone number. The new logic adds a permission check on the actual value returned:
• If the customer has a name, apps with "customer name" access get the name (unchanged).
• If the fallback is an email, the app must have "customer email" access; otherwise the API returns "•••".
• If the fallback is a phone, the app must have "customer phone" access; otherwise it also gets "•••".
• When a customer lacks name, email, and phone, displayName returns an empty string ("").
The fallback order itself did not change, and the field remains non‑null in the schema. The change also applies to related fields such as CustomerSegmentMember.displayName, CustomerMergePreviewDefaultFields.displayName, and the error messages in CustomerMergeError.message and CustomerMergeable.reason.
Who Is Affected
Any public or private app that reads one of the affected fields without having explicit permission to the customer's email or phone will now see "•••" for customers without a name. The impact is limited to the GraphQL Admin API and the Customer Account API; the REST Admin API is unchanged.
How It Impacts Your App
If your app already requests "customer email" and "customer phone" scopes, you’re safe. Otherwise you’ll need to update permissions or adjust the UI to handle the placeholder.
Actionable Steps to Stay Compliant
Search for any occurrence of the following GraphQL fields: Customer.displayName, CustomerSegmentMember.displayName, CustomerMergePreviewDefaultFields.displayName, CustomerMergeError.message, CustomerMergeable.reason. Verify whether you treat the value as a contact detail.
If you need the email or phone, add the corresponding protected‑data scopes (customer.email, customer.phone) in the Partner Dashboard → App Settings → API scopes. Remember that protected data requires a justification and may be subject to Shopify review.
When the API returns "•••", treat it as "contact details not available to this app". Show a friendly placeholder such as "Contact hidden" or fall back to a static note like "Email/Phone unavailable".
Make sure any admin UI, help text, or API docs you provide explain why a customer’s contact information may be masked. This reduces support tickets.
Testing the Change
Create a development store, install your public app, and add a test customer with only an email address (no first/last name). Run a GraphQL query like the one below before and after you add the email scope.
query TestDisplayName {
customer(id: "gid://shopify/Customer/1234567890") {
displayName
email @include(if: $hasEmailScope)
phone @include(if: $hasPhoneScope)
}
}
Without the email scope you should see:
"displayName": "•••"
After adding the scope, the same query returns the actual email address. Replicate the same steps for merge‑preview fields to verify error messages display correctly.
Conclusion & Next Steps
Shopify’s privacy‑first tweak to displayName protects customer contact data but requires developers to be explicit about the data they need. By auditing your app, requesting the proper protected scopes, and handling the "•••" placeholder gracefully, you’ll keep your workflows reliable and stay compliant with Shopify’s data policies.
Ready to update your app? Log in to the Partner Dashboard, add the missing scopes, and push a new version to your test store today. Need help with the scope request process or testing? Drop a comment below or reach out to our Shopify developer community for a quick walkthrough.
