Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello!
Im trying to query the following grahpql:
query GetShopPolicies {
shop {
myshopifyDomain
shopPolicies {
id
title
body
type
url
createdAt
updatedAt
}
}
}
i have the scopes for it
read_legal_policies,read_privacy_settings"
But this is what i get from the query:
{
"errors": [
{
"message": "Access denied for shopPolicies field. Required access: `read_legal_policies` access scope. Also: The user must have access to manage legal policies.",
"locations": [
{
"line": 4,
"column": 5
}
],
"path": [
"shop",
"shopPolicies"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes",
"requiredAccess": "`read_legal_policies` access scope. Also: The user must have access to manage legal policies."
}
}
],
"data": null,
"extensions": {
"cost": {
"requestedQueryCost": 2,
"actualQueryCost": 2,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1998,
"restoreRate": 100
}
}
}
}
Where do i have to give "access to manage legal policies"?
It is written in the docs that you must, but it doesnt say "How to"
References: https://shopify.dev/docs/api/admin-graphql/2024-07/objects/ShopPolicy
91 views, no responses, is this not clear from my side? is there something wrong in my post?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025