Skip to content

Log Workspaces changes to audit log #1034

@ThibautPlg

Description

@ThibautPlg

Hi,

As a Nextcloud (system) administrator, I should be able to know by looking at my audit logs who created a workspace and when.

Currently, my only way of knowing such an information, is by looking at the group creation logs like

{"reqId":"iXi5zW5mwKsHKGssC9pR","level":1,"time":"2024-07-09T14:51:47+02:00","remoteAddr":"127.0.0.1","user":"jdoe","app":"admin_audit","method":"POST","url":"/apps/workspace/spaces","message":"Group created: \"SPACE-GE-19\"","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0","version":"28.0.7.4","data":{"app":"admin_audit"}}
{"reqId":"iXi5zW5mwKsHKGssC9pR","level":1,"time":"2024-07-09T14:51:47+02:00","remoteAddr":"127.0.0.1","user":"jdoe","app":"admin_audit","method":"POST","url":"/apps/workspace/spaces","message":"Group created: \"SPACE-U-19\"","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0","version":"28.0.7.4","data":{"app":"admin_audit"}}

and guess by myself that SPACE-U-* and SPACE-GE-* are what I'm looking for.
Something like "Workspace created: \"my workspace\" with id \"42\" linked to groupfolder \"11\"" would be nice imho.

Sidenotes:

  • Deletion of a workspace should also be logged
  • Adding a group to a workspace too
    • Adding a user is somehow already logged though Nextcloud native behaviour ("message":"User \"toto\" removed from group \"SPACE-GE-18\""

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendModification related to backendfeatureAsk for a new feature or new featurepropositionSuggested improvement to be discussed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions