---
title: "staffMembers"
description: "Query information for all staff members in the store."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/store-properties/queries/staff-members'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/store-properties/queries/staff-members.md'
---
# staffMembers

Query information for all staff members in the store.

- **Required Scopes:** `read_store_staff`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Required Permissions

* `read_store_staff`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `after`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Returns elements following the specified cursor. The `first` argument must also be specified when using this argument.

* `before`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Returns elements preceding the specified cursor. The `last` argument must also be specified when using this argument.

* `first`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  Returns the first n elements in the list. 

* `last`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  Returns the last n elements in the list. 

* `reverse`

  [Boolean](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  Whether to reverse the order of the list. 
  
  ● true: reverse
  
  ● false: do not reverse
  
  Default value: false

## Returns

* `edges`

  [[StaffMemberEdge!]!](https://developer.shopline.com/docs/admin-graph-ql-api/store-properties/objects/staff-member-edge.md)

  A list of cursor and node information for the current page data. 

* `pageInfo`

  [StaffMemberPageInfo!](https://developer.shopline.com/docs/admin-graph-ql-api/store-properties/objects/staff-member-page-info.md)

  The information used for pagination. 

## Examples

### Query all store staff members

Query all store staff members.

**Request:**

```json
query StaffMembers {
    staffMembers(first: 1, reverse: false) {
        edges {
            node {
                uid
                phone
                name
                active
                isShopOwner
                email
            }
        }
        pageInfo {
            hasNextPage
            endCursor
            startCursor
        }
    }
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "staffmembers": {
        "edges": [
          {
            "cursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ==",
            "node": {
              "active": true,
              "email": "test@163.com",
              "isShopOwner": true,
              "name": "test",
              "phone": "13000000000",
              "uid": "111"
            }
          }
        ],
        "pageInfo": {
          "endCursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ==",
          "hasNextPage": "true",
          "startCursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ=="
        }
      }
    }
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

