Skip to content

Clear invitations a user created when revoking #354

Closed

Description

@uniqueg

Revoking a user's roles on a service only cleans the invitations that the user accepted. The invitations the user created stay: those created through a group that is still owner, or as an admin, stay valid, and the others show open until they expire although accepting them returns 404. So a removed user's open links can keep working, and their identifier and the times stay stored and listed for up to expiry_days + keep_expired_days days.

Decided by the maintainer: revoking a user's role also clears the invitations that user created.

  • DELETE /services/{serviceId}/permissions/users/{userId} deletes the invitations on that service that the user created and nobody accepted. Accepted ones hold another user's acceptance and stay until they expire.
  • Only after the revocation succeeded: 409 for the last owner and 404 for a user without a role clear nothing.
  • Tests and docs. The docs also mention the creator identifiers and times that invitations keep (createdBy, createdAs, createdAt), in docs/access-control.md and docs/upgrading.md (pre-release review, finding L4).

Activity

  1. added this to the v1.0.0-rc2 milestone on Nov 4, 2026
  2. added
    priority: high
    status: in progress
    type: bug
    workload: hours
    on Nov 4, 2026
  3. removed
    status: in progress
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions