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

问题描述 投票:0回答:1

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

azure azure-active-directory subdomain
1个回答
0
投票

请注意,您无法通过 Microsoft Graph 更新启用邮件安全组,因为它们是通过 API 只读的。或者,您可以在 PowerShell 中使用 Exchange Online 命令。

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

enter image description here

现在,我创建了一个名为

Sridemogroup
的组,其中包含带有 主域的电子邮件,如下所示:

enter image description here

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

Connect-ExchangeOnline
Get-UnifiedGroup -Identity Sridemogroup
Set-UnifiedGroup -Identity "Sridemogroup" -EmailAddresses @{Add ="[email protected]"}
Set-UnifiedGroup -Identity "Sridemogroup" -PrimarySmtpAddress srid[email protected]
Get-UnifiedGroup -Identity Sridemogroup

回复:

enter image description here

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

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.