SSO Error: "You do not have permissions to join this organization" or prompts to create new organization
在尝试通过 SSO 登录时,你可能会看到“你没有加入此组织的权限”的消息,或者系统会提示你创建一个新组织。
🌐 When attempting to log in via SSO, you may observe the message "You do not have permissions to join this organization" or be prompted to create a new organization.
为什么会这样:
Supabase 会把邮箱/密码账号和单点登录(SSO)身份当作不同的,即使邮箱地址一样。之前和邮箱/密码账号关联的会员身份不会自动绑定到新创建的 SSO 身份上。
🌐 Supabase treats email/password and SSO identities as distinct, even when the email addresses are identical. Existing memberships associated with email/password accounts are not automatically linked to a newly created SSO identity.
如何解决这个问题:
如果你想让你的组织成员自动加入:
🌐 If you want your org members to auto-join:
- 作为组织管理员,请确保在你的单点登录配置中启用了“注册时加入组织”。
- 导航到你们组织的
Members设置。 - 删除任何打算切换到单点登录的现有邮箱/密码用户账户。
- 告诉这些用户通过 SSO 登录;如果自动加入已启用,他们会自动以默认角色被重新添加到你的组织。
或者,你可以手动重新邀请他们的 Google SSO 身份加入组织,要求他们在使用 Google 登录的情况下接受邀请,一旦确认后,删除他们的旧邮箱/密码账户。
🌐 Alternatively, you can manually re-invite their Google SSO identity to the org, ask them to accept the invite while signed in via Google and once confirmed, remove their old email/password account.
设置单点登录的最佳实践:
保留一个使用密码登录的管理员账户作为应急备份。
🌐 Maintain owner account with a password login as a break-glass backup.