在 Azure Active Directory 中验证动态组成员身份规则(预览版)Validate a dynamic group membership rule (preview) in Azure Active Directory

Azure Active Directory (Azure AD) 现在提供验证动态组规则的方法(以公共预览版提供)。Azure Active Directory (Azure AD) now provides the means to validate dynamic group rules (in public preview). 在“验证规则”选项卡上,可以对示例组成员验证动态规则,以确认规则按预期方式工作。On the Validate rules tab, you can validate your dynamic rule against sample group members to confirm the rule is working as expected. 创建或更新动态组规则时,管理员希望了解用户或设备是否将成为该组的成员。When creating or updating dynamic group rules, administrators want to know whether a user or a device will be a member of the group. 这有助于评估用户或设备是否满足规则条件,并有助于在不希望其具有成员身份时进行故障排除。This helps evaluate whether user or device meets the rule criteria and aid in troubleshooting when membership is not expected.

分步演练Step-by-step walk-through

首先,请转到“Azure Active Directory” > “组”。To get started, go to Azure Active Directory > Groups. 选择现有动态组,或创建新的动态组,并单击“动态成员身份规则”。Select an existing dynamic group or create a new dynamic group and click on Dynamic membership rules. 然后,你可以查看“验证规则”选项卡。You can then see the Validate Rules tab.

找到“验证规则”选项卡,并从现有规则开始

在“验证规则”选项卡上,可以选择用户来验证其成员身份。On Validate rules tab, you can select users to validate their memberships. 一次可以选择 20 个用户或设备。20 users or devices can be selected at one time.

添加要验证是否满足现有规则的用户

从选取器选择用户或设备并单击“选择”后,将自动开始验证并显示验证结果。After choosing the users or devices from the picker, and Select, validation will automatically start and validation results will appear.

查看规则验证的结果

结果指示用户是否为组的成员。The results tell whether a user is a member of the group or not. 如果规则无效或出现网络问题,则结果将显示为“未知”。If the rule is not valid or there is a network issue, the result will show as Unknown. 如果显示“未知”,详细的错误消息将说明问题和所需的操作。In case of Unknown, the detailed error message will describe the issue and actions needed.

查看规则验证结果的详细信息

你可以修改规则,这样做将触发成员身份验证。You can modify the rule and validation of memberships will be triggered. 若要查看用户不是组成员的原因,请单击“查看详细信息”,验证详细信息将显示构成规则的每个表达式的结果。To see why user is not a member of the group, click on "View details" and verification details will show the result of each expression composing the rule. 单击“确定”退出。Click OK to exit.

后续步骤Next steps