# 列出所有用户

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/admin/user/list:
    get:
      summary: 列出所有用户
      deprecated: false
      description: 列出所有用户的信息
      tags:
        - admin/user
        - admin/user
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: object
                    properties:
                      content:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                              title: id
                            username:
                              type: string
                              title: 用户名
                            password:
                              type: string
                              title: 密码
                            base_path:
                              type: string
                              title: 基本路径
                            role:
                              type: integer
                              title: 角色
                            disabled:
                              type: boolean
                              title: 是否禁用
                            permission:
                              type: integer
                              title: 权限
                            sso_id:
                              type: string
                              title: sso id
                          required:
                            - id
                            - username
                            - password
                            - base_path
                            - role
                            - disabled
                            - permission
                            - sso_id
                          x-apifox-orders:
                            - id
                            - username
                            - password
                            - base_path
                            - role
                            - disabled
                            - permission
                            - sso_id
                        title: ''
                      total:
                        type: integer
                        title: 总数
                    required:
                      - content
                      - total
                    title: ''
                    x-apifox-orders:
                      - content
                      - total
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  content:
                    - id: 1
                      username: admin
                      password: ''
                      base_path: /
                      role: 2
                      disabled: false
                      permission: 0
                      sso_id: ''
                    - id: 2
                      username: guest
                      password: ''
                      base_path: /
                      role: 1
                      disabled: true
                      permission: 0
                      sso_id: ''
                    - id: 3
                      username: 'N'
                      password: ''
                      base_path: /
                      role: 0
                      disabled: false
                      permission: 256
                      sso_id: ''
                  total: 3
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: admin/user
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955437-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
