Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

Multiple AAD Group Using Same Name #24162

Open arindam0310018 opened 2 years ago

arindam0310018 commented 2 years ago

Hello Team, Please be informed that I can Create Multiple AAD Group using the Same Display Name. Consider the Name of the AAD Group = AM-Test-100

The AAD Group "AM-Test-100" was created successfully from Azure Portal.

Next time, I tried to create AAD Group with the same name "AM-Test-100" from Azure Portal, it displays "GROUP NAME NOT AVAILABLE".

This is the expected behavior.

Now, I tried to create AAD Group with the Same Name "AM-Test-100" not using Azure Portal but this time using Az CLI. Below is the command:-

az ad group create --display-name AM-Test-100 --mail-nickname AM-Test-100

The command executes successfully.

As Observed from Azure Portal, now we have 2 AAD Groups with Same Name "AM-Test-100" but with different Object IDs. Question 1 - Is this an expected behavior or a bug ?

Now, I Execute the same command like above, changing only the "mail-nickname" -

az ad group create --display-name AM-Test-100 --mail-nickname AM-Test-100-01

The command executes successfully.

As Observed from Azure Portal, now we have 3 AAD Groups with Same Name "AM-Test-100" but with different Object IDs. Question 2 - Is this an expected behavior or a bug ?

Note: "mail-nickname" is not displayed over Azure Portal.

Awaiting for your response.

Many Thanks Regards, Arindam Mitra


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

yonzhan commented 2 years ago

@jiasli for awareness

arindam0310018 commented 2 years ago

Hello @yonzhan @jiasli Please let me know if I my understanding is wrong ?

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 2 years ago

Hello @yonzhan @jiasli If time permits, please update Awaiting for your response!!!

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 2 years ago

Hello @yonzhan @jiasli If time permits, please update Awaiting for your response!!!

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 2 years ago

Hello @yonzhan @jiasli If time permits, please update Awaiting for your response!!!

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 2 years ago

Hello @yonzhan @jiasli If time permits, please update Awaiting for your response!!!

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 2 years ago

Hello @yonzhan @jiasli

Any update Please!!!

Many Thanks Best Regards, Arindam Mitra

arindam0310018 commented 2 years ago

Hello @yonzhan /cc: @jiasli

I see you have added a feature request. Could you please share a direct link. Also, If you can confirm if this is a bug.

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 2 years ago

Hello @yonzhan /cc: @jiasli

Please update when you find time

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @yonzhan /cc: @jiasli

Any update please ?

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @yonzhan /cc: @jiasli

Please update when you find time

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @yonzhan /cc: @jiasli

Please update !!!

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @yonzhan /cc: @jiasli

Request for an update please.

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @yonzhan /cc: @jiasli

Request for an update please when time permits.

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @yonzhan /cc: @jiasli

Request for an update please when you find time.

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @yonzhan /cc: @jiasli

Request for an update please.

Many Thanks Regards, Arindam Mitra

jiasli commented 1 year ago

Hi @arindam0310018, apologize for the delay as I was fully occupied with other high-priority tasks. Also, since this issue is not a bug, it falls out of my radar.

Azure CLI is merely a REST client of Microsoft Graph API. The behavior of allowing creating multiple groups with the same displayName is from Microsoft Graph API Create group: https://learn.microsoft.com/en-us/graph/api/group-post-groups?view=graph-rest-1.0&tabs=http

If you are concerned with such behavior, you may reach out to Azure support: https://azure.microsoft.com/en-us/support

Thanks for your understanding.

arindam0310018 commented 1 year ago

Hello @jiasli Thank you for your kind reply. I see your point. I CANNOT create AAD group from Azure Portal using the same display name, but I CAN created multiple AAD Group with same display name using AZCLI (my modifying just the "Nick name" Parameter).

2 Questions more -

  1. Does this mean that I should open another Issue in Github with AZCLI/MS Graph API Team or should I directly report this to Azure Support team as you have mentioned above ? The Reason I ask is the fact that I can create multiple AAD Group with same display name from AZCLI which still appears to be as bug. Yes, Offcourse, this is not happening from Portal but definitely from AZCLI.

  2. I can only create multiple AAD Groups with Same Display name by altering the the Nickname Parameter in the AZCLI command. Below is the command:-

az ad group create --display-name AM-Test-100 --mail-nickname AM-Test-100 az ad group create --display-name AM-Test-100 --mail-nickname AM-Test-100-01 az ad group create --display-name AM-Test-100 --mail-nickname AM-Test-100-02

You see from above, that I can create 3 or more AAD Groups with Same Display name "AM-Test-100" by just altering the nickname parameter.

However, I cannot see the value of the Nickname in Azure Portal against the group. Is this expected ? If Yes, a little explanation would be helpful.

Many Thanks regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @jiasli Appreciate an update from your side when you find time.

Many Thanks Regards, Arindam Mitra

arindam0310018 commented 1 year ago

Hello @jiasli Kindly update when you find time.

Many Thanks Regards, Arindam Mitra