FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
91 stars 12 forks source link

User cannot self service register for multiple apps in same tenant #2898

Closed JoshTheHero closed 1 month ago

JoshTheHero commented 1 month ago

User cannot self service register for multiple apps in same tenant

Description

When a user is already registered to App 1 in Tenant 1, when they visit the registration link for App 2 in Tenant 1 and try to register they meet a "Account already exists for that email". Behaves the same for Username as well

Observed versions

FA Cloud 1.52.0 and 1.53.2

Steps to reproduce

  1. Create a Tenant with 2 Applications in it and enable self service registration for both
  2. Create a user and register them for Application 1, either via admin UI or self service
  3. Go to registration link for App 2 and attempt to use that same email for said user
  4. Encounter error "Account already exists for that email"

Expected behavior

I expect it to let the user register for App 2 if they have the right password or redirect them to login then update registration based on required registration fields in App 2.

Workarounds

If the user tries to log in to App 2, it will let them log in without a registration but force them update registration if there are different required fields for App 2. However directing the user to the login link instead of registration link requires knowing if they are already registered for App 1.

Also if the user is already logged into App 1 and visits App 2 registration link within same browser, it will automatically register them for App 2(prompting for required fields if any exist).

Screenshots

image

Platform

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

robotdan commented 1 month ago

This is working as designed. You cannot create a use more than one time in a tenant.

If I'm missing something, please re-open with additional detail.

LucasPMorris commented 1 month ago

This is working as designed. Not sure the design is something we want?

Tenant A

Is the idea that a single user can only register for one app in a tenant?

Or is the idea that there should be similar requirements between the apps that additional items for self registration aren't needed?

LucasPMorris commented 1 month ago

I see that in the example this was tested in the "create and register at the same time" feature is being utilized vs an independant registration. That makes sense.

https://fusionauth.io/docs/apis/registrations#create-a-user-and-registration-combined