Solved

Scopes granted by merchant for app is suddenly not granted anymore

LouiseEH
Shopify Partner
29 3 4

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
29 3 4

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
1829 269 406

Hey @LouiseEH 

 

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

Scott | Developer Advocate @ Shopify 

LouiseEH
Shopify Partner
29 3 4

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