Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/config files - basic/user-sync-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,8 @@ invocation_defaults:
# For argument --users, the default is 'all'.
# for CSV input, use an array - ['file', 'users.csv']
users: mapped

# Storage location of UMAPI cache. This contains cached users, groups and user assignent info
# The cache will refresh after 24 hours
cache:
path: cache/umapi
2 changes: 2 additions & 0 deletions user_sync/config/user_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class UMAPIConfigLoader(ConfigLoader):
'/directory_users/connectors/*': (True, False, None),
'/directory_users/extension': (True, False, None),
'/logging/file_log_directory': (False, False, "logs"),
'/cache/path': (False, False, None),
}

# like ROOT_CONFIG_PATH_KEYS, but for non-root configuration files
Expand Down Expand Up @@ -78,6 +79,7 @@ class UMAPIConfigLoader(ConfigLoader):
'users': ['all']
}

default_cache_path = "cache/umapi"
def __init__(self, args):
"""
Load the config files and invocation options.
Expand Down
1 change: 1 addition & 0 deletions user_sync/engine/umapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class RuleProcessor(object):
'test_mode': False,
'update_user_info': False,
'username_filter_regex': None,
'cache': None,
}

def __init__(self, caller_options):
Expand Down