diff --git a/AADInternals_python b/AADInternals_python index f7a0326..b653a3b 160000 --- a/AADInternals_python +++ b/AADInternals_python @@ -1 +1 @@ -Subproject commit f7a032607cbabb9bb0cc68687c8acbd50c94d71e +Subproject commit b653a3b478b1ed84a266ec2ff1c40b00fcec1c03 diff --git a/libsync.py b/libsync.py index b8b456b..3f38f7b 100644 --- a/libsync.py +++ b/libsync.py @@ -106,9 +106,11 @@ def generate_all_dict(self): self.dict_az_user = {} self.dict_az_group = {} - for user in self.az.list_users(select="onPremisesImmutableId,userPrincipalName"): + for user in self.az.list_users(select="onPremisesImmutableId,userPrincipalName,onPremisesSyncEnabled"): if not user.get('onPremisesImmutableId'): continue + if not user.get('onPremisesSyncEnabled'): + continue self.dict_az_user[user["onPremisesImmutableId"]] = user if not self.use_get_syncobjects: