Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

read_users scope for Shopify GraphiQL App

Solved

read_users scope for Shopify GraphiQL App

stats_marketing
Shopify Partner
26 3 15

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
26 3 15

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
26 3 15

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