azure - AAD - 创建群组后如何更改电子邮件域

标签 azure azure-active-directory subdomain

使用 API Graph,我创建了一个包含电子邮件地址的 ADD 组。 该地址的域会自动添加到租户中的主要域中。 我无法更改租户上的默认域,但我需要将创建的组的域更改为主域以外的域。我怎样才能实现这个目标?

最佳答案

Note that, you cannot update mail-enabled security groups via Microsoft Graph as they are read-only via API. Alternatively, you can make use of Exchange Online commands in PowerShell.

在我的 Azure AD 租户中,我有几个域,其中一个域是主要,如下所示:

enter image description here

现在,我创建了一个名为 Sridemogroup 的群组,其中包含主域的电子邮件,如下所示:

enter image description here

要在创建群组后更改电子邮件域,您可以在 PowerShell 中运行以下 Exchange Online 命令:

Connect-ExchangeOnline
Get-UnifiedGroup -Identity Sridemogroup
Set-UnifiedGroup -Identity "Sridemogroup" -EmailAddresses @{Add ="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d3e3f24292820222a3f22383d0d3e20242124232a3e3f24632e2220" rel="noreferrer noopener nofollow">[email protected]</a>"}
Set-UnifiedGroup -Identity "Sridemogroup" -PrimarySmtpAddress srid<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="43262e2c24312c363303302e2a2f2a2d2430312a6d202c2e" rel="noreferrer noopener nofollow">[email protected]</a>
Get-UnifiedGroup -Identity Sridemogroup

回应:

enter image description here

当我在门户中检查相同内容时,组的电子邮件已成功更改,如下所示:

enter image description here

关于azure - AAD - 创建群组后如何更改电子邮件域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/77188155/

相关文章:

azure - ASP.Net core Web 应用程序上的 .config 文件和 Azure 设置之间的混淆

php - 如何在主域的子域中包含一个php文件

java - Spring Boot中跨子域共享cookie

asp.net-web-api - 具有通配符名称的基于 asp.net 角色的授权

asp.net - Azure 离线身份验证

Azure 注销重定向 (post_logout_redirect_uri) 不起作用

ruby-on-rails - Rails Restful 路由和子域

本地开发时的 Azure Functions 成本

azure - 我可以安全地忽略 Azure Function 看似过时的错误通知吗?

azure - 无法 RDP 到 CentOs 7 Azure VM