New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

v26.4.25

v26.4.25​

Microsoft Entra ID no longer removes group members when it adds one​

Since v26.4.10, adding members to a group from Microsoft Entra ID could remove the group's other members: each member Entra added replaced the ones before it, and Polis sent a group.user_removed event for each of them.

Entra reads a group with excludedAttributes=members before it adds a member. Polis ignored the parameter and returned the membership, and Entra then sent the new member as a replacement of the membership instead of an addition. A SCIM group read or listing now leaves out the attributes named in excludedAttributes.

The membership check Entra sends before it adds a member, GET /Groups?filter=id eq "<group ID>" and members[value eq "<user ID>"], is answered again. Since v26.4.10 it was refused with 400.

Groups that lost members are not repaired by the upgrade. Entra sends a membership again only when it evaluates the group again, for example after you restart provisioning.

If you embed Polis as a library, pass the excludedAttributes query parameter of the SCIM request in query.excludedAttributes.