Skip to content

🐛 Bug Report: Inviting a dotted Gmail address to an organization fails with 409 user_email_already_exists #14230

Closed

Description

@HarshMN2345

👟 Reproduction steps

  1. On Appwrite Cloud, have a console account that signed in with Google using a dotted Gmail address, e.g. [email protected]. The console denies aliased emails, so the account is stored as [email protected] while its Google sign-in keeps [email protected].
  2. From another account, open an organization's Settings → Members and invite [email protected].

👍 Expected behavior

The invite goes to the existing account. Gmail ignores dots, so [email protected] and [email protected] are the same inbox.

👎 Actual Behavior

POST /v1/teams/:teamId/memberships returns:

{
  "message": "A user with the same email already exists in the current project.",
  "code": 409,
  "type": "user_email_already_exists"
}

The invite looks up the exact typed address, finds no account, then matches the Google sign-in that holds the dotted address and rejects the invite. A dotted Gmail address with no matching sign-in fails with 400 user_email_not_canonical instead, so a dotted Gmail address can't be used to invite anyone to an organization.

The same happens on self-hosted projects that enable the deny-aliased-email policy.

Workaround: invite the dotless address.

Fix: #14172

🎲 Appwrite version

Appwrite Cloud (also self-hosted 2.3.0 with the deny-aliased-email policy on)

💻 Operating system

Something else (not OS-specific)

🧱 Your Environment

Cloud console, organization members page.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Oct 7, 2026
  2. added
    product / auth
    product / console
    product / messaging
    product / self-hosted
    on Oct 7, 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

    bugproduct / authproduct / consoleproduct / messagingproduct / self-hosted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions