Skip to content

Commit 5554327

Browse files
committed
Renamed command from --ignore-outcast-users to --exclude-unmapped-users
1 parent 3f78902 commit 5554327

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

examples/config files - basic/user-sync-config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,11 @@ invocation_defaults:
330330
adobe_users: all
331331
# For argument --connector, the default is 'ldap'.
332332
connector: ldap
333-
# For argument --ignore-outcast-users, the default is False (include all).
334-
# If you set this default to True, UST will automatically ignore user creation
335-
# on user that is not part of any group.
336-
# --include-outcast-users to override the default.
337-
ignore_outcast_users: No
333+
# For argument --exclude_unmapped_users, the default is False (include all).
334+
# If you set this default to True, UST will automatically skip user creation
335+
# on user that is not part of any mapped group.
336+
# --include-unmapped-users to override the default.
337+
exclude_unmapped_users: No
338338
# For argument --process-groups, the default is False (don't process).
339339
# If you set this default to True, you can supply the argument
340340
# --no-process-groups to override the default.

user_sync/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def main():
125125
cls=user_sync.cli.OptionMulti,
126126
type=list,
127127
metavar='ldap|okta|csv|adobe_console [path-to-file.csv]')
128-
@click.option('--ignore-outcast-users/--include-outcast-users', default=None,
129-
help='Ignore users that is not part of a group from being sync')
128+
@click.option('--exclude-unmapped-users/--include-unmapped-users', default=None,
129+
help='Exclude users that is not part of a mapped group from being created on Adobe side')
130130
@click.option('--process-groups/--no-process-groups', default=None,
131131
help='if membership in mapped groups differs between the enterprise directory and Adobe sides, '
132132
'the group membership is updated on the Adobe side so that the memberships in mapped '

user_sync/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ConfigLoader(object):
5151
'config_filename': 'user-sync-config.yml',
5252
'connector': ['ldap'],
5353
'encoding_name': 'utf8',
54-
'ignore_outcast_users': False,
54+
'exclude_unmapped_users': False,
5555
'process_groups': False,
5656
'strategy': 'sync',
5757
'test_mode': False,

user_sync/rules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ def will_update_user_info(self, umapi_info):
325325
def will_process_groups(self):
326326
return self.options['process_groups']
327327

328-
def will_exclude_outcast_users(self):
329-
return self.options['ignore_outcast_users']
328+
def will_exclude_unmapped_users(self):
329+
return self.options['exclude_unmapped_users']
330330

331331
def get_umapi_info(self, umapi_name):
332332
umapi_info = self.umapi_info_by_name.get(umapi_name)
@@ -468,7 +468,7 @@ def sync_umapi_users(self, umapi_connectors):
468468
verb = "Push"
469469
else:
470470
verb = "Sync"
471-
ignore_outcast_users = self.will_exclude_outcast_users()
471+
exclude_unmapped_users = self.will_exclude_unmapped_users()
472472
# first sync the primary connector, so the users get created in the primary
473473
if umapi_connectors.get_secondary_connectors():
474474
self.logger.debug('%sing users to primary umapi...', verb)
@@ -480,7 +480,7 @@ def sync_umapi_users(self, umapi_connectors):
480480
else:
481481
primary_adds_by_user_key = self.update_umapi_users_for_connector(umapi_info, umapi_connector)
482482
for user_key, groups_to_add in six.iteritems(primary_adds_by_user_key):
483-
if ignore_outcast_users == True and not groups_to_add:
483+
if exclude_unmapped_users == True and not groups_to_add:
484484
# If user is not part of any group and ignore outcast is enabled. Do not create user.
485485
pass
486486
else:

0 commit comments

Comments
 (0)