Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter to avoid random number in groups email address #13

Open
pretzer opened this issue Oct 28, 2021 · 0 comments
Open

Add parameter to avoid random number in groups email address #13

pretzer opened this issue Oct 28, 2021 · 0 comments

Comments

@pretzer
Copy link

pretzer commented Oct 28, 2021

The function New-AADUnifiedGroup contains this code to add a random number to the mail address of the group:

$randomNum = (Get-Random -Maximum 1000).tostring()
$mailNickname = $GroupName.Replace(" ", "") + $randomNum

This should be optional by introducing a parameter to turn the behavior off.
Thank you for consideration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant