|
1 | 1 | # user-sync.py |
2 | | -Application for synchronizing Adobe customer directories via the User Management API |
| 2 | + |
| 3 | +Application for synchronizing customer directories with the |
| 4 | +Adobe Enterprise Admin Console via the |
| 5 | +[User Management API](https://www.adobe.io/products/usermanagement/docs/gettingstarted.html) |
| 6 | +(aka UMAPI). |
| 7 | + |
| 8 | +This application is open source, maintained by Adobe, and distributed under the terms |
| 9 | +of the OSI-approved MIT license. See the LICENSE file for details. |
| 10 | + |
| 11 | +Copyright (c) 2016-2017 Adobe Systems Incorporated. |
| 12 | + |
| 13 | +# Overview |
| 14 | + |
| 15 | +`user-sync` automates user creation and product entitlement |
| 16 | +assignment in the Adobe Enterprise Admin Console. |
| 17 | +It takes a list of enterprise directory users, |
| 18 | +either from an LDAP connection or from a tab-separated file, |
| 19 | +and creates, updates, or removes user accounts in the |
| 20 | +Admin Console. |
| 21 | + |
| 22 | +# Requirements |
| 23 | + |
| 24 | +* Python 2.7+ |
| 25 | +* User Management API Credentials (see [the official documentation](https://www.adobe.io/products/usermanagement/docs/gettingstarted)) |
| 26 | +* Accessible LDAP server (optional) |
| 27 | + |
| 28 | +# Installation |
| 29 | + |
| 30 | +The connector is packaged as a [self-contained .pex file](https://github.com/pantsbuild/pex). See the releases page to get the latest build for your platform. |
| 31 | + |
| 32 | +## Build Instructions |
| 33 | + |
| 34 | +Requirements: |
| 35 | + |
| 36 | +* Python 2.7+ |
| 37 | +* [virtualenv](https://virtualenv.pypa.io/en/stable/) |
| 38 | +* If building on Debian - `python-dev libssl-dev libffi-dev libsasl2-dev libldap2-dev` |
| 39 | +* GNU Make |
| 40 | + |
| 41 | +To build, run `make pex` from the command line in the main repo directory. |
| 42 | + |
| 43 | +# Basic Usage |
| 44 | + |
| 45 | +``` |
| 46 | +Adobe Enterprise Dashboard User Sync |
| 47 | +
|
| 48 | +optional arguments: |
| 49 | + -h, --help show this help message and exit |
| 50 | + -v, --version show program's version number and exit |
| 51 | + -t, --test-mode run API action calls in test mode (does not execute |
| 52 | + changes). Logs what would have been executed. |
| 53 | + -c path, --config-path path |
| 54 | + specify path to config files. (default: "") |
| 55 | + --config-filename filename |
| 56 | + main config filename. (default: "user-sync- |
| 57 | + config.yml") |
| 58 | + --users all|file|group [arg1 ...] |
| 59 | + specify the users to be considered for sync. Legal |
| 60 | + values are 'all' (the default), 'group name or names' |
| 61 | + (one or more specified AD groups), 'file f' (a |
| 62 | + specified input file). |
| 63 | + --user-filter pattern |
| 64 | + limit the selected set of users that may be examined |
| 65 | + for syncing, with the pattern being a regular |
| 66 | + expression. |
| 67 | + --source-filter connector:file |
| 68 | + send the file to the specified connector (for example, |
| 69 | + --source-filter ldap:foo.yml). This parameter is used |
| 70 | + to limit the scope of the LDAP query. |
| 71 | + --update-user-info if user information differs between the customer side |
| 72 | + and the Adobe side, the Adobe side is updated to |
| 73 | + match. |
| 74 | + --process-groups if the membership in mapped groups differs between the |
| 75 | + customer side and the Adobe side, the group membership |
| 76 | + is updated on the Adobe side so that the memberships |
| 77 | + in mapped groups matches the customer side. |
| 78 | + --remove-nonexistent-users |
| 79 | + Causes the user sync tool to remove Federated users |
| 80 | + that exist on the Adobe side if they are not in the |
| 81 | + customer side AD. This has the effect of deleting the |
| 82 | + user account if that account is owned by the |
| 83 | + organization under which the sync operation is being |
| 84 | + run. |
| 85 | + --generate-remove-list output_path |
| 86 | + processing similar to --remove-nonexistent-users |
| 87 | + except that rather than performing removals, a file is |
| 88 | + generated (with the given pathname) listing users who |
| 89 | + would be removed. This file can then be given in the |
| 90 | + --remove-list argument in a subsequent run. |
| 91 | + -d input_path, --remove-list input_path |
| 92 | + specifies the file containing the list of users to be |
| 93 | + removed. Users on this list are removeFromOrg'd on the |
| 94 | + Adobe side. |
| 95 | +``` |
| 96 | + |
| 97 | +# Configuration |
| 98 | + |
| 99 | +See `examples/example.user-sync-config.yml` for the main configuration template. The main configuration file user-sync-config.yml must exist in the configuration path. |
| 100 | + |
| 101 | +See `examples/example.dashboard-config.yml` for the dashboard configuration template. The tool would try and find dashboard-owning-config.yml in the configuration path. |
| 102 | + |
| 103 | +See `examples/example.connector-ldap.yml` for the ldap configuration template. The main configuration file can be configured to reference this file. |
| 104 | + |
| 105 | + |
0 commit comments