# 获取用户列表

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/users:
    get:
      summary: 获取用户列表
      deprecated: false
      description: ''
      operationId: query
      tags:
        - 用户管理
        - user-controller
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CoSecPrincipal'
          headers: {}
          x-apifox-name: OK
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
          x-apifox-name: Bad Request
      security:
        - bearer: []
      x-apifox-folder: 用户管理
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3525375/apis/api-121737377-run
components:
  schemas:
    CoSecPrincipal:
      required:
        - name
        - id
        - attributes
        - policies
        - roles
      type: object
      properties:
        name:
          type: string
        id:
          type: string
        attributes:
          type: object
          additionalProperties:
            type: string
          x-apifox-orders: []
          properties: {}
          x-apifox-ignore-properties: []
        policies:
          uniqueItems: true
          type: array
          items:
            type: string
        roles:
          uniqueItems: true
          type: array
          items:
            type: string
      x-apifox-orders:
        - name
        - id
        - attributes
        - policies
        - roles
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    ErrorResponse:
      required:
        - code
        - msg
      type: object
      properties:
        code:
          type: string
        msg:
          type: string
      x-apifox-orders:
        - code
        - msg
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
security:
  - bearer: []

```
