diff --git a/plugins/modules/azure_rm_aduser.py b/plugins/modules/azure_rm_aduser.py index 21808d6c2..28dd39bfd 100644 --- a/plugins/modules/azure_rm_aduser.py +++ b/plugins/modules/azure_rm_aduser.py @@ -310,7 +310,7 @@ def exec_module(self, **kwargs): should_update = True if should_update or self.user_type and ad_user.user_type != self.user_type: should_update = True - if should_update or self.account_enabled and ad_user.account_enabled != self.account_enabled: + if should_update or self.account_enabled is not None and ad_user.account_enabled != self.account_enabled: should_update = True if should_update or self.display_name and ad_user.display_name != self.display_name: should_update = True