Skip to content

Failed attempts to delete users show up in audit log as successful #11607

Closed
@gtaylor

Description

@gtaylor

I attempted to delete a user that had a stopped workspace and got the expected "You cannot delete a user that has workspaces. Delete their workspaces and try again!" error.

When looking in the audit log, I noticed that there was an audit entry that suggested that I successfully deleted the user:

<my-username> has deleted user <target-username>

Since my deletion attempt aborted due to error, I'd instead expect the entry to either be absent or something like:

<my-username> unsuccessfully attempted to delete user <target-username>

Metadata

Metadata

Assignees

No one assigned

    Labels

    s3Bugs that confuse, annoy, or are purely cosmeticstaleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions