apache / apache/cloudstack

Don't allow the creation of user with same Email id in the same domain

Open
#8,523 7 comments 0 reactions 0 assignees View on GitHub
component:api component:UI no-issue-activity status:needs-functional-definition type:enhancement type:improvement type:security
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

ISSUE TYPE

Enhancement/Improvement Request

COMPONENT NAME

Component: API/ UI

CLOUDSTACK VERSION

Cloudstack version 4.18

SUMMARY

Don't allow the creation of user with same Email id in the same domain

Steps to reproduce the issue

1. Navigate to domain > Accounts > Click on a particular Account > Create say user1 with (test@gmail.com)

2. Navigate to domain >Accounts > Click on a particular Account > Create say user2 with (test@gmail.com)

Screenshot

Screenshot 2024-01-17 at 12 32 25 PM

**Expected behaviour**

Cloudstack should not allow to create the user with same Email address in the same domain

If a oauth is configured for a user in a cloudstack , email address is used as key to identify.

Cloudstack throws an error saying there is an already multiple user having the same email address in the same domain.

It would be proactive checking if we could block the creation of user with same email address during the user creation

Contributor guide

Open the contributing guide

Research direction

The issue names API/UI user creation as the entry point but provides no implementation files or tests. Trace creation for users within a domain, then add a regression test showing that a duplicate email is rejected in the same domain while the expected behavior remains verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.