Solved

read_users scope for Shopify GraphiQL App

stats_marketing
Shopify Partner
25 3 11

I am trying to access and query the `staffMember` object through the Shopify GraphiQL App but it keeps saying it doesn't know it:

 

Field 'staffMember' doesn't exist on type 'QueryRoot'

 

 

query ActivityFeed($first: Int!) {
  staffMember {
    id
    privateData {
      activityFeed(first: $first) {
        pageInfo {
          hasNextPage
          __typename
        }
        edges {
          ...Activity
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}

fragment Activity on ActivityEdge {
  cursor
  node {
    author
    createdAt
    messages
    attributed
    __typename
  }
  __typename
}

 

More-so when it made me re-install the App I looked for the `read_users` scope (which is needed by the StaffMember object)  and did not find it when giving the app permissions upon re-install.

 

Does this app not have that permission?

Accepted Solution (1)

stats_marketing
Shopify Partner
25 3 11

This is an accepted solution.

I have found that the `read_users` scope is available considering the following:

The User resource is available for private apps and custom apps installed on Shopify Plus stores. You need to contact Shopify Plus Support to request the read_users access scope for your app.

https://shopify.dev/api/admin-rest/2022-10/resources/user

View solution in original post

Reply 1 (1)

stats_marketing
Shopify Partner
25 3 11

This is an accepted solution.

I have found that the `read_users` scope is available considering the following:

The User resource is available for private apps and custom apps installed on Shopify Plus stores. You need to contact Shopify Plus Support to request the read_users access scope for your app.

https://shopify.dev/api/admin-rest/2022-10/resources/user