大网数据广告活动
域与目录服务

Microsoft Entra Connect excludes a user's primary group from its group membership

· 52CE 我爱测

Describes an issue that causes Microsoft Entra Connect to exclude a user's primary group from its group membership.

Original product version:   Microsoft Entra ID
Original KB number:   4014115

Summary

Microsoft Entra Connect doesn't support primary group functionality. Therefore, it does not query the PrimaryGroupID attribute to build the group membership of a user. This may cause problems for users who are still using the primary group feature.

When you set the primary group for a user, that user is excluded from the corresponding group membership in Active Directory. Instead, the PrimaryGroupID attribute is set with that group.

For example:

  1. User1 belongs to Group1, which means that Group1 has User1 as a member.
  2. The primary group is changed on User1 from Domain Users to Group1:
    1. User1 is excluded from Group1 Members.
    2. User1 is added as a member of Domain Admins (because it's no longer the primary group).
    3. The User1 PrimaryGroupID attribute is set with the Group1 reference.

Programs that need to query groups to give users access that is based on group membership should also query for the PrimaryGroupID attribute. However, Microsoft Entra Connect does not support PrimaryGroupID because of the complexity of group membership synchronization.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 06/08/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。