getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
37.58k stars 4.04k forks source link

Duplicate email invite when transitioning user base into SCIM managed state #72224

Open serglom21 opened 1 month ago

serglom21 commented 1 month ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Disable SCIM
  2. Add member to org with user@emailA.com
  3. Enable SSO
  4. Enable SCIM
  5. Member login with user@emailB.com

Expected Result

I would expect that after the identity of the member account gets merged, the member should be able to login with email B via SSO

Actual Result

A first invite gets sent to user@emailB.com when they try to log in for the first time. If the user now tries to log in with user@emailA.com before the invite sent to emailB is accepted, Sentry will send a duplicate invite and not try to merge the accounts

Internal Customer Case

Product Area

Sign In

Link

No response

DSN

No response

Version

No response

getsantry[bot] commented 1 month ago

Routing to @getsentry/product-owners-sign-in for triage ⏲️

getsantry[bot] commented 1 month ago

Assigning to @getsentry/support for routing ⏲️