FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Synchronise Lookup groups.

Merged Dean Rasheed requested to merge issue-10-synchronise-lookup-groups into master
1 unresolved thread
Files
2
+ 5
1
@@ -51,6 +51,10 @@ class Configuration(config.ConfigurationDataclassMixin):
# The organization unit path in which new accounts are placed
new_user_org_unit_path: str = '/'
# Suffix appended to the names of groups created in Google. The Google group name will be
# "{groupName}{group_name_suffix}", where {groupName} is the Lookup group name.
group_name_suffix: str = ' from lookup.cam.ac.uk'
# Inter-batch delay in seconds. This is useful to avoid hitting Google rate limits.
inter_batch_delay: numbers.Real = 5
@@ -339,7 +343,7 @@ def sync(configuration, *, read_only=True):
# 73 and 4096 characters respectively in Google.
expected_google_group = {
'name': _trim_text(
managed_group_entry.groupName, maxlen=73, suffix='@groups.lookup.cam.ac.uk'
managed_group_entry.groupName, maxlen=73, suffix=sync_config.group_name_suffix
),
'description': _trim_text(managed_group_entry.description, maxlen=4096)
}
Loading