Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 1.08 KB

audit.md

File metadata and controls

63 lines (47 loc) · 1.08 KB

Audit log

Get audit log

The audit log can be accessed by all admins in msui.yaml and with the audit permission. The result may be filtered based on the user's domain permissions.

URL : /xhr/audit

Method : GET

Authentication required : YES

Query parameters (optional)

  • filter.fields: ["identifier", "type", "action", "user", "message]
  • filter.query: string
  • filter.method: "contains" | "is"

Example

GET /xhr/audit

On success

Response Code : 200

[
  {
    "id": 1,
    "user": "admin",
    "identifier": null,
    "type": "localauth",
    "action": "login",
    "output": "success",
    "message": "",
    "owner_id": null,
    "created_at_ts0": "2020-03-09T13:20:12.000Z"
  },
  {
    "id": 2,
    "user": "admin",
    "identifier": "example.com",
    "type": "domain",
    "action": "add",
    "output": "success",
    "message": "",
    "owner_id": null,
    "created_at_ts0": "2020-03-09T13:20:26.000Z"
  }
]

On failure

Response Code :

  • 401 Unauthorized
  • 500 Internal Server Error