arvados-sync-groups tool allows to synchronize remote groups into Arvados from an external source.
This tool reads a CSV (comma-separated values) file having information about external groups and their members. When running it for the first time, it’ll create a special group named ‘Externally synchronized groups’ meant to be the parent of all the remote groups.
Every line on the file should have 2 values: a group name and a local user identifier, meaning that the named user is a member of the group. The tool will create the group if it doesn’t exist, and add the user to it. If group member is not present on the input file, the account will be removed from the group.
Users can be identified by their email address or username: the tool will check if every user exist on the system, and report back when not found. Groups on the other hand, are identified by their name.
This tool is designed to be run periodically reading a file created by a remote auth system (ie: LDAP) dump script, applying what’s included on the file as the source of truth.
arvados-sync-groupsneeds to perform several administrative tasks on Arvados, so must be run using a superuser token
The following command line options are supported:
|--help||This list of options|
|--parent-group-uuid||UUID of group to own all the externally synchronized groups|
|--user-id||Identifier to use in looking up user. One of ‘email’ or ‘username’ (Default: ‘email’)|
|--verbose||Log informational messages (Default: False)|
|--version||Print version and exit|
To sync groups using the username to identify every account, reading from some
external_groups.csv file, the command should be called as follows:
~$ arvados-sync-groups --user-id username /path/to/external_groups.csv
If you want to use a specific preexisting group as the parent of all the remote groups, you can do it this way:
~$ arvados-sync-groups --parent-group-uuid <preexisting group UUID> --user-id username /path/to/external_groups.csv
The content of this documentation is licensed under the
Commons Attribution-Share Alike 3.0 United States licence.
Code samples in this documentation are licensed under the Apache License, Version 2.0.