Multiple AAD Group Using Same Name
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**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.*
* ID: 34960494-f5eb-4144-b508-0573f7382e40
* Version Independent ID: 0c7138d1-9849-0b71-8e76-22d0116ff663
* Content: [az ad group](https://learn.microsoft.com/en-us/cli/azure/ad/group?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/ad/group.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/ad/group.yml)
* Service: **active-directory**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.