Forum Discussion
Sk-73
Apr 04, 2022Iron Contributor
Dynamic membership rules
Dear all, May I know how to add expression rules into our Dynamic group in order to remove those inactive users? The current workaround is, to change the group type to the assigned group type, remov...
Mr_Helaas
Apr 04, 2022Steel Contributor
Hi,
It depends on how you mark a user as inactive. I hope those users are disabled. So you can use the expression:
user.accountEnabled -eq false
All other available options are defined in the following Microsoft blog
https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership
Please let me know if this fix your problem. Or please let us know how you mark users as inactive.
Kind regards,
René
It depends on how you mark a user as inactive. I hope those users are disabled. So you can use the expression:
user.accountEnabled -eq false
All other available options are defined in the following Microsoft blog
https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership
Please let me know if this fix your problem. Or please let us know how you mark users as inactive.
Kind regards,
René
Sk-73
Apr 04, 2022Iron Contributor
- Mr_HelaasApr 04, 2022Steel ContributorHi,
If you click on block sign in, the user will be disabled in azure ad and you can use the expression that I have posted in precious comment to filter them out.
Kind regards,
René- Sk-73Apr 04, 2022Iron Contributor
- Apr 04, 2022You could use the validate rule to determine if the user that was disabled (blocked sign in) shows up