Use the interface to obtain all user accounts.

Only available for users with administrative rights.


URL ip[:port]/sc_cloud/scapi/get-users
Data Format Request: Content-Type: application/json

Request Cookies

Parameter Description
mwcloud-sid A string value that is used to uniquely identify user logged-in.
mwcloud-uid Current logged-in username.

Request Example

GET /sc_cloud/scapi/get-users HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code. The options are as follows:
  • 0: success.
  • Other values. For details about the result codes, please refer to API Status.
users User list.
Parameter Description
id User ID.
name User name. Admin has administrative rights.
nick Nickname, reserved.
  • The default administrator account is Admin.
  • Admin cannot be deleted.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 254
  "result": 0,
  "users": [
      "id": 1,
      "name": "Admin",
      "nick": "Admin",
      "Passwd": "",
      "permit": -1
      "id": 2,
      "name": "Test",
      "nick": "",
      "Passwd": "",
      "permit": 1

results matching ""

    No results matching ""

    results matching ""

      No results matching ""