---
title: "staffMember"
description: "查询店铺指定员工的信息。你可以使用 UID 查询员工名称、电话、邮箱等信息。"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/store-properties/queries/staff-member'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/store-properties/queries/staff-member.md'
---
# staffMember

查询店铺指定员工的信息。你可以使用 UID 查询员工名称、电话、邮箱等信息。

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

## Required Permissions

* `read_store_staff`

接口访问需要令牌，具体如何获取令牌请参考：[身份认证](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md)

## Arguments

* `uid`

  [ID!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/id.md)

  员工的唯一 ID。

## Returns

* `uid`

  [ID](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/id.md)

  员工的唯一 ID。

* `phone`

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

  员工的手机号。

* `name`

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

  员工的名称。

* `active`

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

  当前员工账号是否已激活。
  - `true`: 已激活 
  - `false`: 待激活

* `isShopOwner`

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

  是否为店铺的店主。
  
  - `true`：是店铺的店主。
  - `false`：不是店铺的店主。

* `email`

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

  员工的邮箱。

## Examples

### 查询店铺指定员工的信息。

查询店铺指定员工的信息。

**Request:**

```json
query MyQuery {
    staffMember(
        uid: "111"
    ) {
        uid
        phone
        name
        active
        isShopOwner
        email
    }
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "active": true,
      "email": "test@163.com",
      "isShopOwner": true,
      "name": "test",
      "phone": "13000000000",
      "uid": "111"
    }
  }
}
```

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

