Pending Invitation Not Cancelled When User Deleted via SCIM
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 2.8k
- Forks
- 334
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 50
Description
Summary
When a user is deleted via SCIM before they have accepted their invitation, the pending invitation remains active. The deleted user can still accept the invitation and join the team. The user appears as an active team member but is unable to log in to Wire. This is primarily a visual bug — the user shows up in the team roster but is functionally inaccessible.
Expected behavior
When a SCIM DELETE request is received for a user, any pending invitation associated with that user should be automatically cancelled. The user should not appear as an active team member after deletion, and no invitation should remain that could allow re-joining.
Actual behavior
- User is created and an invitation is sent (user has not accepted yet)
- User is deleted via SCIM
DELETE /Users/{id} - The pending invitation remains active in the system
- The user can accept the invitation and is added back as an active team member
- The user appears in the team roster but cannot log in to Wire
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the SCIM DELETE /Users/{id} handler and trace how pending invitations are handled when a user is removed. Reproduce the sequence described in the issue, then verify that deletion cancels the pending invitation and prevents the user from reappearing through invitation acceptance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100