【发布时间】:2022-11-11 12:49:59
【问题描述】:
我有 A 组、B 组和 C 组。如果成员同时是 B 组和 C 组中的任何组的成员,我只想允许他们进入 A 组
例如,用户 Joe Blow 是组 B 的成员,也是组集合 C 中的第三个组。他将被允许进入组 A。
这可能吗?
编辑: 这个问题的答案是肯定的,理论上是有可能的。它应该通过动态组来处理。
Dynamic membership rules for groups in Azure Active Directory
但是,对于此用例,它似乎无法正常工作。 此查询应该有效:
user.memberof -any (group.objectId -in ["GroupC-1Id", "GroupC-2Id"]) -and user.memberof -any (group.objectId -in ["GroupBId"])
但仅是 Group C-1 成员的用户仍会进入 Group A
此查询对其他人有效:
user.memberof any (group.objectId in ["GroupBId"]) and (user.memberof any (group.objectId eq ["GroupC-1Id"]) or user.memberof any (group.objectId eq ["GroupC-2Id"]))
但对我来说,它会导致仅是 B 组成员的用户仍然进入 A 组。
【问题讨论】:
-
您能否通过 GUI 或尝试的任何 PowerShell 命令执行步骤?
-
@kavyaSaraboju 到目前为止,我已经用我的研究更新了这个问题。
标签: azure azure-active-directory azure-security