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, remove the inactive user, and then change it back to a dynamic group.
Will be grateful for any help you can provide.
Thanks.
- Mr_HelaasSteel ContributorHi,
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é