Skip to content

Commit 4aae87b

Browse files
committed
don't auto-create groups if 'process_groups' is false
1 parent cb40834 commit 4aae87b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

docs/en/user-manual/advanced_configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ following conditions are true:
785785

786786
1. Group is targeted for at least one user
787787
2. Group does not currently exist
788+
3. The `--process-groups` command argument is set (or the equivalent
789+
invocation option)
788790

789791
New groups are always created as user groups. The UMAPI does not
790792
support product profile creation, so the Sync Tool can't create them.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ directory_users:
218218
# NOTE: auto_create applies to any targeted Adobe group that doesn't exist.
219219
# This includes groups targeted through group mapping, extension config,
220220
# and the additional_groups functionality.
221+
# The --process-groups command argument or equivalent invocation setting must
222+
# be enabled for groups to be auto-created
221223
# group_sync_options:
222224
# auto_create: False
223225

user_sync/rules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ def run(self, directory_groups, directory_connector, umapi_connectors):
176176
umapi_stats = JobStats('Push to UMAPI' if self.push_umapi else 'Sync with UMAPI', divider="-")
177177
umapi_stats.log_start(logger)
178178
if directory_connector is not None:
179-
self.create_umapi_groups(umapi_connectors)
179+
if self.options.get('process_groups'):
180+
self.create_umapi_groups(umapi_connectors)
180181
self.sync_umapi_users(umapi_connectors)
181182
if self.will_process_strays:
182183
self.process_strays(umapi_connectors)

0 commit comments

Comments
 (0)