You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't allow the creation of user with same Email id in the same domain #8523
I think this needs more exploration @kiranchavala as it can be useful to have the same user in multiple accounts in the same domain, for some. In the case of OAuth this may be a problem indeed. at the moment it is not allowed to have the same userid, so maybe it is trivial but for some it may make sense to have "dahnUser" and "dahnAdmin", which makes it a backwards compatibility concern as well.
accounts don't have email addresses, users do. That makes our design and bit awkward for integration with oauth, as users log into an account to do things on the accounts behalf. I think we should allow users with the same email in different accounts, but what can not happen is the same user-id in a domain.
I think the bug is not allowing creation of multiple users in different accounts with the same email, but not allowing the login of said users. cc @harikrishna-patnala
This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.
accounts don't have email addresses, users do. That makes our design and bit awkward for integration with oauth, as users log into an account to do things on the accounts behalf. I think we should allow users with the same email in different accounts, but what can not happen is the same user-id in a domain. I think the bug is not allowing creation of multiple users in different accounts with the same email, but not allowing the login of said users. cc @harikrishna-patnala
@DaanHoogland we cannot allow oauth login if multiple users are found with same email id. The question raises to which user to create the login.
I kind of agree with @kiranchavala to somehow give operators to configure such that duplicate emails are not allowed. I could think of the following solutions.
Create a new domain level setting or or new detail while creating the domain, which describes whether same emails are allowed or not. By default we can keep the old way
Another solution is while enabling oauth on specific domain, check if there are any existing users having duplicate emails and throw the exception and also while creating new users check if oauth is enabled and if there is same email present in the database or not
accounts don't have email addresses, users do. That makes our design and bit awkward for integration with oauth, as users log into an account to do things on the accounts behalf. I think we should allow users with the same email in different accounts, but what can not happen is the same user-id in a domain. I think the bug is not allowing creation of multiple users in different accounts with the same email, but not allowing the login of said users. cc @harikrishna-patnala
@DaanHoogland we cannot allow oauth login if multiple users are found with same email id. The question raises to which user to create the login.
I kind of agree with @kiranchavala to somehow give operators to configure such that duplicate emails are not allowed. I could think of the following solutions.
1. Create a new domain level setting or or new detail while creating the domain, which describes whether same emails are allowed or not. By default we can keep the old way
2. Another solution is while enabling oauth on specific domain, check if there are any existing users having duplicate emails and throw the exception and also while creating new users check if oauth is enabled and if there is same email present in the database or not
This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.
Activity
DaanHoogland commentedon Jan 17, 2024
I think this needs more exploration @kiranchavala as it can be useful to have the same user in multiple accounts in the same domain, for some. In the case of OAuth this may be a problem indeed. at the moment it is not allowed to have the same userid, so maybe it is trivial but for some it may make sense to have "dahnUser" and "dahnAdmin", which makes it a backwards compatibility concern as well.
kiranchavala commentedon Feb 9, 2024
Thanks @DaanHoogland
Can we consider if ouath is enabled in global setting , we should not allow the creation of accounts with same email address
cc @harikrishna-patnala your opinion on this.
DaanHoogland commentedon Feb 12, 2024
accounts don't have email addresses, users do. That makes our design and bit awkward for integration with oauth, as users log into an account to do things on the accounts behalf. I think we should allow users with the same email in different accounts, but what can not happen is the same user-id in a domain.
I think the bug is not allowing creation of multiple users in different accounts with the same email, but not allowing the login of said users. cc @harikrishna-patnala
github-actions commentedon Dec 31, 2025
This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.
harikrishna-patnala commentedon May 11, 2026
@DaanHoogland we cannot allow oauth login if multiple users are found with same email id. The question raises to which user to create the login.
I kind of agree with @kiranchavala to somehow give operators to configure such that duplicate emails are not allowed. I could think of the following solutions.
cc @kiranchavala
kiranchavala commentedon May 11, 2026
Thanks @harikrishna-patnala, I like the first option 1
to have a setting at Domain/zone/Global level, which prohibits the account creation if there is an already account with the same email address
github-actions commentedon Sep 13, 2026
This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.