e-office User Manual
  • Overview
    • Chinese Online User Manual
    • e-Office Training Video
  • Server
    • 1 Preparation
    • 2 Installation
    • 3 License
    • 4 FAQ
    • 5 Service Management Platform
  • Mobile APP
    • 1 Preparation
    • 2 Installation
    • 3 Configuration
  • Quick Start Guideline
  • Design a new workflow
    • 1 New Form - Leave Application
    • 2 New workflow-Leave Application
    • 3 Initialize new leave application
    • 4 Regular Expressions(Regex) in Field validation
  • App Studio - New Application
    • 1 New application - Customer Management
    • 2 Approval flow
    • 3 User Menu
    • 4 All the controls
  • Open API
    • 1 Overview
    • 2 Attachment
    • 3 User Management
  • Customisation
  • Expense
    • My expenses
    • Expense List
    • Enter expense
    • Budget Statistics
    • Setting
      • Budget
      • Permission
        • Expense List
        • Budget Statistics
        • Expense Category
      • Basic Settings
      • Expense category
    • Expense Report
  • Project
    • My project
      • Project Details
    • New project
    • Project Task
    • Report Management
    • Settings
  • CRM
    • CRM Homepage
    • New Customer
    • Details
      • Customer List
        • List Data
        • Data Operation
        • Customer Detail
      • Contact
      • Contact Log
      • Opportunity
      • Sales Record
      • Contracts
      • Customer Pool
        • Pools I Managed
        • Pools I Joined
        • Pool Configuration
    • Suppliers
    • Product
    • More
      • Import/Export
      • Transfer
      • Merge
      • Recycle Bin
      • Request to access
      • Permission Approval
    • Customer Report
    • Settings
      • Field Settings
      • Homepage Configuration
      • Pool Configuration
      • Permission Setting
      • Related Business Setting
  • Assets
    • New asset
    • Application for use ~ WIP
    • Application for approval
    • Changes
    • Maintenance
    • Asset inventory ~ WIP
    • Return of assets ~ WIP
    • Analysis ~ WIP
    • Settings ~ WIP
  • Leave
    • My Leave
    • Leave List
    • Leave Type
    • Leave Setting
  • Attendance ~ WIP
Powered by GitBook
On this page
  1. Open API

3 User Management

get user list

GET api/user/users

Parameter Example

{ autoFixPage: 1 limit: 10 order_by: {"list_number":"desc"} page: 2 search: {"user_name":["System","like"],"phone_number":["123123","like"]} }

Request Body

Name
Type
Description

autoFixPage

int

start page

search

json

Query conditions

page

int

page number

order_by

json

sort

limit

int

display records per page

Field

Type

Description

status

boolean

(1) Access is successful

{
     "status": 1,
     "data": {
         "total": 669, // Total users
         "list": [ // User list
             {
                 "user_id": "admin", // User ID non-admin user start with WV
                 "user_accounts": "admin", // Username
                 "user_name": "System admin", // Real name
                 "user_name_py": "xitongguanliyuan",
                 "user_name_zm": "xtgly",
                 "user_job_number": "2058", // Personal no.
                 "list_number": null, // Series no.
                 "user_position": 4, // Position ID
                 "user_has_many_role": [
                     {
                         "user_id": "admin",
                         "role_id": 1,
                         "created_at": "2018-05-11 16:13:17",
                         "updated_at": "2018-05-11 16:13:17",
                         "deleted_at": null,
                         "has_one_role": {
                             "role_id": 1,
                             "role_name": "OA Admin", // User Admin, if user with multiple roles, then user_has_many_role get multiple roles
                             "role_no": 0,
                             "role_name_py": "OAguanliyuan",
                             "role_name_zm": "OAgly",
                             "created_at": "2015-11-18 05:21:37",
                             "updated_at": "2017-03-05 15:35:54",
                             "deleted_at": null
                         }
                     }
                 ],
                 "user_has_one_info": {
                     "user_id": "admin",
                     "sex": "1", // Gender 1-Male 0-Female
                     "birthday": "0000-00-00", // Birth date
                     "dept_phone_number": "", // Department Tel.
                     "faxes": "", // Fax
                     "home_address": "", // Home address
                     "home_zip_code": "", // Postal code
                     "home_phone_number": "", //Home tel
                     "phone_number": "", // Mobile
                     "weixin": "", // Wechat
                     "email": "", // email
                     "oicq_no": "", // QQ
                     "msn": "msn", // msn
                     "notes": "",
                     "theme": "theme7",
                     "sms_on": "0",
                     "menu_hide": "2",
                     "avatar_source": "",
                     "avatar_thumb": "",
                     "signature_picture": "",
                     "created_at": "2015-08-25 04:05:45",
                     "updated_at": "2018-05-29 15:53:02",
                     "deleted_at": null
                 },
                 "user_has_one_system_info": {
                     "user_id": "admin",
                     "dept_id": 2, // User department ID
                     "max_role_no": 0,
                     "post_priv": "1",
                     "post_dept": "",
                     "duty_type": 1,
                     "last_login_time": "2018-06-15 14:13:14",
                     "last_pass_time": "2018-04-24 10:54:15",
                     "shortcut": "2,3,57,98,252,5,",
                     "sms_login": "0",
                     "wap_allow": 1,
                     "login_usbkey": "0",
                     "usbkey_pin": "",
                     "user_status": 1, // User status, all user here will be active users
                     "is_autohrms": 1,
                     "created_at": "2015-08-25 04:05:45",
                     "updated_at": "2018-06-15 14:13:14",
                     "deleted_at": null,
                     "user_system_info_belongs_to_department": {
                         "dept_id": 2,
                         "dept_name": "IT Department", // User department
                         "tel_no": "",
                         "fax_no": "",
                         "parent_id": 59,
                         "dept_name_py": "yanfabu",
                         "dept_name_zm": "yfb",
                         "arr_parent_id": "0,59",
                         "has_children": 0,
                         "dept_sort": 1,
                         "deleted_at": null,
                         "created_at": "2015-11-10 11:22:22",
                         "updated_at": "2017-05-16 02:40:34"
                     }
                 },
                 "user_has_one_attendance_scheduling_info": {
                     "scheduling_id": 1,
                     "user_id": "admin"
                 },
                 "user_position_name": "IT Manager" // User's position
             },
         ...
     }
}

Name

Type

Description

status

boolean

(0) Access failed

errors

array

Access failure error message

{
    "status": 0,
    "errors": [
        {
            "code": "0x000003",
            "message": "未知错误"
        }
    ]
}

Last updated 1 year ago