auditlog.get

    The method allows to retrieve audit log records according to the given parameters.

    This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.

    Parameters

    The method supports the following parameters.

    (integer/array) Returns either:

    • an array of objects;
    • the count of retrieved objects, if the countOutput parameter has been used.

    Examples

    Retrieve audit log

    Request:

    Response:

    1. {
    2. "result": [
    3. {
    4. "userid": "1",
    5. "username": "Admin",
    6. "clock": "1629975715",
    7. "ip": "127.0.0.1",
    8. "action": "1",
    9. "resourcetype": "0",
    10. "resourceid": "0",
    11. "resourcename": "Jim",
    12. "recordsetid": "cksstgfal0000yhdcso67ondl",
    13. "details": "{\"user.name\":[\"update\",\"Jim\",\"\"],\"user.medias[37]\":[\"add\"],\"user.medias[37].\":[\"add\"],\"user.medias[37].mediatypeid\":[\"add\",\"1\"],\"user.medias[37].sendto\":[\"add\",\"[email protected]\"]}"
    14. {
    15. "userid": "1",
    16. "username": "Admin",
    17. "clock": "1629967278",
    18. "ip": "127.0.0.1",
    19. "action": "0",
    20. "resourcetype": "0",
    21. "resourceid": "20",
    22. "resourcename": "John",
    23. "recordsetid": "ckssofl0p0000yhdcpxyo1jgo",
    24. "details": "{\"user.username\":[\"add\",\"John\"], \"user.userid:\":[\"add\",\"20\"],\"user.usrgrps[28]\":[\"add\"],\"user.usrgrps[28].usrgrpid\":[\"add\", \"7\"]}"
    25. }
    26. ],

    Source