在 Azure Active Directory 中对 Microsoft 365 组强制执行命名策略Enforce a naming policy on Microsoft 365 groups in Azure Active Directory

若要为用户创建或编辑的 Microsoft 365 组强制执行一致的命名约定,请在 Azure Active Directory (Azure AD) 中为组织设置组命名策略。To enforce consistent naming conventions for Microsoft 365 groups created or edited by your users, set up a group naming policy for your organizations in Azure Active Directory (Azure AD). 例如,可以使用命名策略传达组的功能、成员身份、地理区域或创建组的人员。For example, you could use the naming policy to communicate the function of a group, membership, geographic region, or who created the group. 使用命名策略还可帮助对通讯簿中的组分类。You could also use the naming policy to help categorize groups in the address book. 可以使用策略来阻止组名称和别名中使用特定字词。You can use the policy to block specific words from being used in group names and aliases.

重要

若要将 Azure AD 命名策略用于 Microsoft 365 组,你需要拥有 Azure Active Directory Premium P1 许可证或 Azure AD Basic EDU 许可证,但不一定要为每名唯一用户(一个或多个 Microsoft 365 组的成员)都分配该许可证。Using Azure AD naming policy for Microsoft 365 groups requires that you possess but not necessarily assign an Azure Active Directory Premium P1 license or Azure AD Basic EDU license for each unique user that is a member of one or more Microsoft 365 groups.

命名策略应用于创建组或编辑跨工作负荷(例如 Outlook、Microsoft Teams、SharePoint、Exchange 或 Planner)创建的组。The naming policy is applied to creating or editing groups created across workloads (for example, Outlook, Microsoft Teams, SharePoint, Exchange, or Planner). 它应用于组名和组别名。It is applied to both the group name and group alias. 如果在 Azure AD 中设置了命名策略,并且有现成的 Exchange 组命名策略,组织中会强制执行 Azure AD 命名策略。If you set up your naming policy in Azure AD and you have an existing Exchange group naming policy, the Azure AD naming policy is enforced in your organization.

如果配置了组命名策略,该策略将应用于最终用户创建的新 Microsoft 365 组。When group naming policy is configured, the policy will be applied to new Microsoft 365 groups created by end users. 命名策略不会应用于某些目录角色,如全局管理员或用户管理员(请参阅下文以查看免受组命名策略约束的角色的完整列表)。Naming policy does not apply to certain directory roles, such as Global Administrator or User Administrator (please see below for the complete list of roles exempted from group naming policy). 对于现有的 Microsoft 365 组,该策略不会在配置时立即应用。For existing Microsoft 365 groups, the policy will not immediately apply at the time of configuration. 组所有者编辑这些组的组名称后,命名策略将会被强制执行。Once group owner edits the group name for these groups, naming policy will be enforced.

命名策略功能Naming policy features

可通过两种不同方式对组强制执行命名策略:You can enforce naming policy for groups in two different ways:

  • 前后缀命名策略:可以定义前缀或后缀,之后会自动添加这些前缀或后缀来对组强制执行命名约定(例如,在组名称“GRP_CHINA_My Group_Engineering”中,GRP_CHINA_ 是前缀,_Engineering 是后缀)。Prefix-suffix naming policy You can define prefixes or suffixes that are then added automatically to enforce a naming convention on your groups (for example, in the group name “GRP_CHINA_My Group_Engineering”, GRP_CHINA_ is the prefix, and _Engineering is the suffix).

  • 自定义阻止字词 可上传一组特定于组织的阻止字词,将在用户创建的组中阻止这些字词(例如,“CEO、工资单、HR”)。Custom blocked words You can upload a set of blocked words specific to your organization to be blocked in groups created by users (for example, “CEO, Payroll, HR”).

前后缀命名策略Prefix-suffix naming policy

命名约定的一般结构是“前缀[GroupName]后缀”。The general structure of the naming convention is ‘Prefix[GroupName]Suffix’. 虽然可以定义多个前缀和后缀,但设置中仅可包含一个 [GroupName] 实例。While you can define multiple prefixes and suffixes, you can only have one instance of the [GroupName] in the setting. 前缀或后缀可以是固定字符串,也可以是根据创建组的用户替换的用户属性(如 [Department])。The prefixes or suffixes can be either fixed strings or user attributes such as [Department] that are substituted based on the user who is creating the group. 包括组名称在内的前缀和后缀字符串允许的总字符数为 53 个字符。The total allowable number of characters for your prefix and suffix strings including group name is 53 characters.

前缀和后缀可包含组名和组别名中支持的特殊字符。Prefixes and suffixes can contain special characters that are supported in group name and group alias. 如果前缀或后缀中有任何组别名不支持的字符,这些字符仍可应用于组名,但会从组别名中删除。Any characters in the prefix or suffix that are not supported in the group alias are still applied in the group name, but removed from the group alias. 由于存在此限制,应用于组名的前缀和后缀与应用于组别名的前缀和后缀可能有所不同。Because of this restriction, the prefixes and suffixes applied to the group name might be different from the ones applied to the group alias.

固定字符串Fixed strings

使用字符串,可更轻松地扫描和区分全局地址列表和左侧组工作负荷导航链接中的组。You can use strings to make it easier to scan and differentiate groups in the global address list and in the left navigation links of group workloads. 一些常见的前缀是类似“Grp_Name”、“#Name”、“_Name”的关键字Some of the common prefixes are keywords like ‘Grp_Name’ , ‘#Name’, ‘_Name’

用户属性User attributes

可以使用属性帮助你和你的用户标识针对哪个部门、办公室或地理区域创建了组。You can use attributes that can help you and your users identify which department, office or geographic region for which the group was created. 例如,如果将命名策略定义为 PrefixSuffixNamingRequirement = "GRP [GroupName] [Department]",且 User’s department = Engineering,则强制使用的组名可能是“GRP My Group Engineering”。For example, if you define your naming policy as PrefixSuffixNamingRequirement = "GRP [GroupName] [Department]", and User’s department = Engineering, then an enforced group name might be “GRP My Group Engineering." 支持的 Azure AD 属性包括 [Department]、[Company]、[Office]、[StateOrProvince]、[CountryOrRegion]、[Title]。Supported Azure AD attributes are [Department], [Company], [Office], [StateOrProvince], [CountryOrRegion], [Title]. 不支持的用户属性被视为固定字符串;例如,“[postalCode]”。Unsupported user attributes are treated as fixed strings; for example, “[postalCode]”. 不支持扩展属性和自定义属性。Extension attributes and custom attributes aren't supported.

建议对组织中的所有用户使用已填充值的属性,不使用具有 Long 值的属性。We recommend that you use attributes that have values filled in for all users in your organization and don't use attributes that have long values.

自定义阻止字词Custom blocked words

阻止的字词列表是要在组名和组别名中阻止的短语的逗号分隔列表。A blocked word list is a comma-separated list of phrases to be blocked in group names and aliases. 未执行任何子字符串搜索。No sub-string searches are performed. 组名与一个或多个自定义阻止字词之间完全匹配才会触发失败。An exact match between the group name and one or more of the custom blocked words is required to trigger a failure. 不会执行子字符串搜索,因此用户可使用“Class”甚至是“lass”等作为阻止词。Sub-string search isn't performed so that users can use common words like ‘Class’ even if ‘lass’ is a blocked word.

阻止的字词列表规则:Blocked word list rules:

  • 阻止的字词不区分大小写。Blocked words are not case sensitive.
  • 当用户在组名中输入阻止的字词时,会看到错误消息以及阻止的字词。When a user enters a blocked word as part of a group name, they see an error message with the blocked word.
  • 对于阻止的字词,没有字符限制。There are no character restrictions on blocked words.
  • 在阻止的字词列表中可配置最多 5000 个短语。There is an upper limit of 5000 phrases that can be configured in the blocked words list.

角色和权限Roles and permissions

若要配置命名策略,需要以下角色之一:To configure naming policy, one of the following roles is required:

  • 全局管理员Global administrator
  • 组管理员Group administrator

选定的管理员可跨所有组工作负荷和终结点得到这些策略的豁免,因此可以使用阻止的字词及其自己的命名约定创建组。Selected administrators can be exempted from these policies, across all group workloads and endpoints, so that they can create groups using blocked words and with their own naming conventions. 下面列出了可得到组命名策略豁免的管理员角色。The following are the list of administrator roles exempted from the group naming policy.

  • 全局管理员Global administrator
  • 合作伙伴层 1 支持Partner Tier 1 Support
  • 合作伙伴层 2 支持Partner Tier 2 Support
  • 用户管理员User administrator
  • 目录写入者Directory writers

在 Azure 门户中配置命名策略Configure naming policy in Azure portal

  1. 使用组管理员帐户登录到 Azure 门户Sign in to the Azure portal with a Group administrator account.

  2. 选择“组”,然后选择“命名策略”,以便打开“命名策略”页。 Select Groups , then select Naming policy to open the Naming policy page.

    在管理中心打开“命名策略”页

查看或编辑前后缀命名策略View or edit the prefix-suffix naming policy

  1. 在“命名策略”页上,选择“组命名策略”。 On the Naming policy page, select Group naming policy.
  2. 可以单独查看或编辑当前的前缀或后缀命名策略,只需选择需要在命名策略中强制实施的属性或字符串即可。You can view or edit the current prefix or suffix naming policies individually by selecting the attributes or strings you want to enforce as part of the naming policy.
  3. 若要从列表中删除某个前缀或后缀,请选择该前缀或后缀,然后选择“删除”。 To remove a prefix or suffix from the list, select the prefix or suffix, then select Delete. 可以同时删除多个项。Multiple items can be deleted at the same time.
  4. 通过选择“保存”,保存对新策略的更改以使其生效。Save your changes for the new policy to go into effect by selecting Save.

编辑自定义阻止字词Edit custom blocked words

  1. 在“命名策略”页上,选择“阻止字词”。 On the Naming policy page, select Blocked words.

    编辑并上传命名策略的阻止字词列表

  2. 查看或编辑自定义阻止字词的当前列表,方法是选择“下载”。 View or edit the current list of custom blocked words by selecting Download.

  3. 上传自定义阻止字词的新列表,方法是选择文件图标。Upload the new list of custom blocked words by selecting the file icon.

  4. 通过选择“保存”,保存对新策略的更改以使其生效。Save your changes for the new policy to go into effect by selecting Save.

安装 PowerShell cmdletInstall PowerShell cmdlets

请先确保卸载任意较早版本的适用于 Windows PowerShell 的 Azure Active Directory PowerShell for Graph 模块,并安装 Azure Active Directory PowerShell for Graph - 公共预览版 2.0.0.137,然后再运行 PowerShell 命令。Be sure to uninstall any older version of the Azure Active Directory PowerShell for Graph Module for Windows PowerShell and install Azure Active Directory PowerShell for Graph - Public Preview Release 2.0.0.137 before you run the PowerShell commands.

  1. 以管理员身份打开 Windows PowerShell 应用。Open the Windows PowerShell app as an administrator.

  2. 卸载任何以前版本的 AzureADPreview。Uninstall any previous version of AzureADPreview.

    Uninstall-Module AzureADPreview
    
  3. 安装最新版本的 AzureADPreview。Install the latest version of AzureADPreview.

    Install-Module AzureADPreview
    

    如果出现有关访问了不受信任的存储库的提示,请输入“Y”。安装新模块可能需要几分钟。If you are prompted about accessing an untrusted repository, enter Y. It might take few minutes for the new module to install.

在 PowerShell 中配置命名策略Configure naming policy in PowerShell

  1. 在计算机上打开 Windows PowerShell 窗口。Open a Windows PowerShell window on your computer. 无需提升的权限即可打开该窗口。You can open it without elevated privileges.

  2. 运行以下命令,准备运行 cmdlet。Run the following commands to prepare to run the cmdlets.

    Import-Module AzureADPreview
    Connect-AzureAD -AzureEnvironmentName AzureChinaCloud
    

    在打开的“登录到你的帐户”屏幕上,输入管理员帐户和密码以连接到服务,然后选择“登录”。In the Sign in to your Account screen that opens, enter your admin account and password to connect you to your service, and select Sign in.

  3. 按照用于配置组设置的 Azure Active Directory cmdlet 中的步骤为此组织创建组设置。Follow the steps in Azure Active Directory cmdlets for configuring group settings to create group settings for this organization.

查看当前设置View the current settings

  1. 提取当前命名策略,查看当前设置。Fetch the current naming policy to view the current settings.

    $Setting = Get-AzureADDirectorySetting -Id (Get-AzureADDirectorySetting | where -Property DisplayName -Value "Group.Unified" -EQ).id
    
  2. 显示当前组设置。Display the current group settings.

    $Setting.Values
    

设置命名策略和自定义阻止字词Set the naming policy and custom blocked words

  1. 在 Azure AD PowerShell 中设置组名前缀和后缀。Set the group name prefixes and suffixes in Azure AD PowerShell. 要使功能正常工作,必须在设置中包含 [GroupName]。For the feature to work properly, [GroupName] must be included in the setting.

    $Setting["PrefixSuffixNamingRequirement"] =“GRP_[GroupName]_[Department]"
    
  2. 设置要限制的自定义阻止字词。Set the custom blocked words that you want to restrict. 下面的示例演示如何添加自己的自定义字词。The following example illustrates how you can add your own custom words.

    $Setting["CustomBlockedWordsList"]=“Payroll,CEO,HR"
    
  3. 保存新策略的设置以使其生效,如以下示例所示。Save the settings for the new policy to go into effect, such as in the following example.

    Set-AzureADDirectorySetting -Id (Get-AzureADDirectorySetting | where -Property DisplayName -Value "Group.Unified" -EQ).id -DirectorySetting $Setting
    

就这么简单。That's it. 现已设置了命名策略,并添加了阻止字词。You've set your naming policy and added your blocked words.

导出或导入自定义阻止字词Export or import custom blocked words

有关详细信息,请参阅用于配置组设置的 Azure Active Directory cmdlet 一文。For more information, see the article Azure Active Directory cmdlets for configuring group settings.

下面的 PowerShell 脚本示例可导出多个阻止字词:Here is an example of a PowerShell script to export multiple blocked words:

$Words = (Get-AzureADDirectorySetting).Values | Where-Object -Property Name -Value CustomBlockedWordsList -EQ 
Add-Content "c:\work\currentblockedwordslist.txt" -Value $words.value.Split(",").Replace("`"","")  

下面的 PowerShell 脚本示例可导入多个阻止字词:Here is an example PowerShell script to import multiple blocked words:

$BadWords = Get-Content "C:\work\currentblockedwordslist.txt"
$BadWords = [string]::join(",", $BadWords)
$Settings = Get-AzureADDirectorySetting | Where-Object {$_.DisplayName -eq "Group.Unified"}
if ($Settings.Count -eq 0)
    {$Template = Get-AzureADDirectorySettingTemplate | Where-Object {$_.DisplayName -eq "Group.Unified"}
    $Settings = $Template.CreateDirectorySetting()
    New-AzureADDirectorySetting -DirectorySetting $Settings
    $Settings = Get-AzureADDirectorySetting | Where-Object {$_.DisplayName -eq "Group.Unified"}}
$Settings["CustomBlockedWordsList"] = $BadWords
Set-AzureADDirectorySetting -Id $Settings.Id -DirectorySetting $Settings 

删除命名策略Remove the naming policy

使用 Azure 门户删除命名策略Remove the naming policy using Azure portal

  1. 在“命名策略”页上,选择“删除策略”。 On the Naming policy page, select Delete policy.
  2. 确认删除之后,将会删除命名策略,包括所有前缀-后缀命名策略和任何自定义阻止字词。After you confirm the deletion, the naming policy is removed, including all prefix-suffix naming policy and any custom blocked words.

使用 Azure AD PowerShell 删除命名策略Remove the naming policy using Azure AD PowerShell

  1. 清空 Azure AD PowerShell 中的组名前缀和后缀。Empty the group name prefixes and suffixes in Azure AD PowerShell.

    $Setting["PrefixSuffixNamingRequirement"] =""
    
  2. 清空自定义阻止字词。Empty the custom blocked words.

    $Setting["CustomBlockedWordsList"]=""
    
  3. 保存设置。Save the settings.

    Set-AzureADDirectorySetting -Id (Get-AzureADDirectorySetting | where -Property DisplayName -Value "Group.Unified" -EQ).id -DirectorySetting $Setting
    

跨 Microsoft 365 应用的体验Experience across Microsoft 365 apps

在 Azure AD 中设置组命名策略后,用户在 Microsoft 365 应用中创建组时会看到:After you set a group naming policy in Azure AD, when a user creates a group in a Microsoft 365 app, they see:

  • 在用户键入组名后立即看到随命名策略而定的名称预览(包括前缀和后缀)A preview of the name according to your naming policy (with prefixes and suffixes) as soon as the user types in the group name
  • 如果用户输入阻止字词,可看到一条错误消息,因此可删除阻止字词。If the user enters blocked words, they'll see an error message so they can remove the blocked words.
工作负荷Workload 合规性Compliance
Azure Active Directory 门户Azure Active Directory portals 如果用户在创建或编辑组时键入组名,Azure AD 门户和访问面板门户会显示命名策略强制使用的名称。The Azure AD portal and the Access Panel portal show the naming policy enforced name when the user types in a group name when creating or editing a group. 当用户输入自定义阻止字词时,会显示一错误消息以及阻止字词,以便用户删除它。When a user enters a custom blocked word, an error message with the blocked word is displayed so that the user can remove it.
Outlook Web Access (OWA)Outlook Web Access (OWA) 当用户键入组名或组别名时,Outlook Web Access 显示命名策略强制使用的名称。Outlook Web Access shows the naming policy enforced name when the user types a group name or group alias. 当用户输入自定义阻止字词时,UI 中会显示一条错误消息以及阻止字词,以便用户删除它。When an user enters a custom blocked word, an error message is shown in the UI along with the blocked word so that the user can remove it.
Outlook 桌面Outlook Desktop 在 Outlook 桌面中创建的组遵循命名策略设置。Groups created in Outlook desktop are compliant with the naming policy settings. 用户输入组名时,Outlook 桌面应用当前不会显示强制使用的组名的预览,也不会返回自定义阻止字词错误。Outlook desktop app doesn't yet show the preview of the enforced group name and doesn't return the custom blocked word errors when the user enters the group name. 但是,在创建或编辑组时,会自动应用命名策略,并且用户会在组名或组别名中包含自定义阻止字词时看到错误消息。However, the naming policy is automatically applied when creating or editing a group, and users see error messages if there are custom blocked words in the group name or alias.
Microsoft TeamsMicrosoft Teams 用户输入团队名时,Microsoft Teams 显示命名策略强制使用的名称。Microsoft Teams shows the group naming policy enforced name when the user enters a team name. 当用户输入自定义阻止字词时,会显示一条错误消息以及阻止字词,以便用户删除它。When a user enters a custom blocked word, an error message is shown along with the blocked word so that the user can remove it.
SharePointSharePoint 当用户键入站点名或组电子邮件地址时,SharePoint 显示命名策略强制使用的名称。SharePoint shows the naming policy enforced name when the user types a site name or group email address. 当用户输入自定义阻止字词时,会显示一条错误消息以及阻止字词,以便用户删除它。When an user enters a custom blocked word, an error message is shown, along with the blocked word so that the user can remove it.
Microsoft StreamMicrosoft Stream 当用户键入组名或组电子邮件别名时,Microsoft Stream 显示命名策略强制使用的名称。Microsoft Stream shows the group naming policy enforced name when the user types a group name or group email alias. 当用户输入自定义阻止字词时,会显示一条错误消息以及阻止字词,以便用户删除它。When an user enters a custom blocked word, an error message is shown with the blocked word so the user can remove it.
Outlook iOS 和 Android 应用Outlook iOS and Android App 在 Outlook 应用中创建的组遵循配置的命名策略。Groups created in Outlook apps are compliant with the configured naming policy. 用户输入组名时,Outlook 移动应用当前不会显示命名策略强制使用的名称的预览,也不会返回自定义阻止字词错误。Outlook mobile app doesn't yet show the preview of the naming policy enforced name, and doesn't return custom blocked word errors when the user enters the group name. 但是,在单击“创建”/“编辑”时会自动应用命名策略,并且用户会在组名或组别名中包含自定义阻止字词时看到错误消息。However, the naming policy is automatically applied on clicking create/edit and users see error messages if there are custom blocked words in the group name or alias.
组移动应用Groups mobile app 在组移动应用中创建的组遵循命名策略。Groups created in the Groups mobile app are compliant with the naming policy. 用户输入组名时,组移动应用不会显示组命名策略预览,也不会返回自定义阻止字词错误。Groups mobile app does not show the preview of the naming policy and does not return custom blocked word errors when the user enters the group name. 但在创建或编辑组时,会自动应用命名策略,并且用户会在组名或组别名中包含自定义阻止字词时看到相应的错误消息。But the naming policy is automatically applied when creating or editing a group and users is presented with appropriate errors if there are custom blocked words in the group name or alias.
PlannerPlanner Planner 遵循命名策略。Planner is compliant with the naming policy. 输入计划名称时,Planner 显示命名策略预览。Planner shows the naming policy preview when entering the plan name. 创建计划时,如果用户输入自定义阻止字词,会显示一条错误消息。When a user enters a custom blocked word, an error message is shown when creating the plan.
Dynamics 365 for Customer EngagementDynamics 365 for Customer Engagement Dynamics 365 for Customer Engagement 遵循命名策略。Dynamics 365 for Customer Engagement is compliant with the naming policy. 当用户键入组名或组电子邮件别名时,Dynamics 365 显示命名策略强制使用的名称。Dynamics 365 shows the naming policy enforced name when the user types a group name or group email alias. 当用户输入自定义阻止字词时,会显示一条错误消息以及阻止字词,以便用户删除它。When the user enters a custom blocked word, an error message is shown with the blocked word so the user can remove it.
学校数据同步 (SDS)School Data Sync (SDS) 通过 SDS 创建的组遵循命名策略,但不会自动应用命名策略。Groups created through SDS comply with naming policy, but the naming policy isn't applied automatically. SDS 管理员必须将前缀和后缀追加需要为其创建组的类名,然后上传到 SDS。SDS administrators have to append the prefixes and suffixes to class names for which groups need to be created and then uploaded to SDS. 否则,组创建或编辑会失败。Group create or edit would fail otherwise.
Outlook Customer Manager (OCM)Outlook Customer Manager (OCM) Outlook Customer Manager 遵循命名策略,并且命名策略自动应用于在 Outlook Customer Manager 中创建的组。Outlook Customer Manager is compliant with the naming policy, which is automatically applied to the group created in Outlook Customer Manager. 如果检测到自定义阻止字词,则会阻止在 OCM 中创建组,并阻止用户使用 OCM 应用。If a custom blocked word is detected, group creation in OCM is blocked, and the user is blocked from using the OCM app.
Classroom 应用Classroom app 在 Classroom 应用中创建的组遵循命名策略,但不会自动应用命名策略,并且在输入教室组名时不会向用户显示命名策略预览。Groups created in Classroom app comply with the naming policy, but the naming policy isn't applied automatically, and the naming policy preview isn't shown to the users while entering a classroom group name. 用户必须输入强制使用的教室组名称(包含前缀和后缀)。Users must enter the enforced classroom group name with prefixes and suffixes. 否则,教室组创建或编辑会失败,并出现错误。If not, the classroom group create or edit operation fails with errors.
Power BIPower BI Power BI 工作区遵循命名策略。Power BI workspaces are compliant with the naming policy.
YammerYammer 当使用其 Azure Active Directory 帐户登录到 Yammer 的用户创建一个组或编辑组名时,组名将符合命名策略。When a user signed in to Yammer with their Azure Active Directory account creates a group or edits a group name, the group name will comply with naming policy. 这适用于 Microsoft 365 连接组以及所有其他 Yammer 组。This applies both to Microsoft 365 connected groups and all other Yammer groups.
如果在命名策略到位之前已创建 Microsoft 365 连接组,则组名将不会自动遵循命名策略。If a Microsoft 365 connected group was created before the naming policy is in place, the group name will not automatically follow the naming policies. 当用户编辑组名,系统将提示他们添加前缀和后缀。When a user edits the group name, they will be prompted to add the prefix and suffix.
StaffHubStaffHub StaffHub 团队不遵循该命名策略,但基础 Microsoft 365 组遵循。StaffHub teams do not follow the naming policy, but the underlying Microsoft 365 group does. StaffHub 团队名不应用前缀和后缀,也不检查自定义阻止字词。StaffHub team name does not apply the prefixes and suffixes and does not check for custom blocked words. 但对于基础 Microsoft 365 组,StaffHub 却会应用前缀和后缀并从该组中删除阻止字词。But StaffHub does apply the prefixes and suffixes and removes blocked words from the underlying Microsoft 365 group.
Exchange PowerShellExchange PowerShell Exchange PowerShell cmdlet 遵循命名策略。Exchange PowerShell cmdlets are compliant with the naming policy. 如果用户不遵循组名和组别名 (mailNickname) 的命名策略,则会收到相应的错误消息,以及建议的前后缀和自定义阻止字词。Users receive appropriate error messages with suggested prefixes and suffixes and for custom blocked words if they don't follow the naming policy in the group name and group alias (mailNickname).
Azure Active Directory PowerShell cmdletAzure Active Directory PowerShell cmdlets Azure Active Directory PowerShell cmdlet 遵循命名策略。Azure Active Directory PowerShell cmdlets are compliant with naming policy. 如果用户不遵循组名和组别名的命名约定,则会收到相应的错误消息,以及建议的前后缀和自定义阻止字词。Users receive appropriate error messages with suggested prefixes and suffixes and for custom blocked words if they don't follow the naming convention in group names and group alias.
Exchange 管理中心Exchange admin center Exchange 管理中心遵循命名策略。Exchange admin center is compliant with naming policy. 如果用户不遵循组名和组别名的命名约定,则会收到相应的错误消息,以及建议的前后缀和自定义阻止字词。Users receive appropriate error messages with suggested prefixes and suffixes and for custom blocked words if they don't follow the naming convention in the group name and group alias.
Microsoft 365 管理中心Microsoft 365 admin center Microsoft 365 管理中心遵循命名策略。Microsoft 365 admin center is compliant with naming policy. 当用户创建或编辑组名时,会自动应用命名策略,并且用户会在输入自定义阻止字词时收到相应的错误消息。When a user creates or edits group names, the naming policy is automatically applied, and users receive appropriate errors when they enter custom blocked words. 在用户输入组名时,Microsoft 365 管理中心并不会显示命名策略预览,也不会返回自定义阻止字词错误。The Microsoft 365 admin center doesn't yet show a preview of the naming policy and doesn't return custom blocked word errors when the user enters the group name.

后续步骤Next steps

以下文章提供有关 Azure AD 组的更多信息。These articles provide additional information on Azure AD groups.