Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Scopes granted by merchant for app is suddenly not granted anymore

Solved

Scopes granted by merchant for app is suddenly not granted anymore

LouiseEH
Shopify Partner
38 3 7

Hi,

The bulk query below suddenly started failing with status ACCESS_DENIED from the 16th of August. The query before and after the 16th of August is the same.
If I create a private app on the same shop with the same scopes and make the same query, access is not denied, I checked the requested scopes on the app installation:

query {
    app{
        requestedAccessScopes{
            handle
        }
    }
  }

{
    "data": {
        "app": {
            "requestedAccessScopes": []
        }
    },
    "extensions": {
        "cost": {
            "requestedQueryCost": 2,
            "actualQueryCost": 2,
            "throttleStatus": {
                "maximumAvailable": 2000.0,
                "currentlyAvailable": 1998,
                "restoreRate": 100.0
            }
        }
    }
}

which explains the problem, but how can the scopes the merchants granted a long time a go suddenly be not-granted?


Details:
App scopes: 

'read_products',
'read_orders',
'read_inventory',
'read_locations',
 
Bulk query:
mutation {
    bulkOperationRunQuery(
      query: """
      {
        orders {
            edges {
                node {
                  id
                  totalPriceSet {
                    shopMoney {
                        amount
                    }
                  }
                  name
                displayFinancialStatus
                displayFulfillmentStatus
                createdAt
                updatedAt
                cancelledAt
                closedAt
                lineItems {
                      edges {
                          node {
                            id
                            variant {
                                id
                              }
                          quantity
                          originalUnitPriceSet{
                              shopMoney {
                                  amount
                              }
                          }
                            fulfillmentStatus
                            fulfillableQuantity
                            refundableQuantity
                          }
                      }
                  }
                  transactions {
                      id
                      kind
                      amountSet {
                          shopMoney {
                              amount
                          }
                      }
                  }
                }
            }
        }
    }
      
      """
    )  {
      bulkOperation {
        id
        status
      }
      userErrors {
        field
        message
      }
    }
  }
Accepted Solution (1)
LouiseEH
Shopify Partner
38 3 7

This is an accepted solution.

Hi Scott,

Thank you for your message. I was just informed in another channel that it might be a "Protected customer data access" issue. I've now submitted the request - if you can fasttrack it (app 3081783), I appreciate it - otherwise I'll just wait and see.
Thanks,
-Louise

View solution in original post

Replies 2 (2)

SBD_
Shopify Staff
1831 273 422

Hey @LouiseEH 

 

Strange. Can you DM me store + app details please?

Scott | Developer Advocate @ Shopify 

LouiseEH
Shopify Partner
38 3 7

This is an accepted solution.

Hi Scott,

Thank you for your message. I was just informed in another channel that it might be a "Protected customer data access" issue. I've now submitted the request - if you can fasttrack it (app 3081783), I appreciate it - otherwise I'll just wait and see.
Thanks,
-Louise