Export GitLab users information and automate user accounts creation
Project description
A simple command line interface to handle GitLab user accounts, based on python-gitlab.
Installation
Install the package on your system
pip install gitlab-users
Edit the ~/.python-gitlab.cfg following the python-gitlab package instructions to setup the GitLab instance to connect with (present version only targets default instance).
Usage
Get help
gitlab-users -h
List all users with their email
gitlab-users
List emails from a given group
gitlab-users -g a_group --email-only
Create multiple user accounts at once from a csv file
gitlab-users --create-from example.csv
where example.csv contains
# username, name, email, [organization], [location], [group], [access_level] wayne,Bruce Wayne,bruce.wayne@wayne-entreprises.com,Wayne Entreprises,Gotham City,Board,owner kent,Clark Kent,clark.kent@krypton.univ,,Smallville,,
List unused accounts (never sign-in or last connection is older than 1 year)
gitlab-users --unused
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitlab-users-0.3.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for gitlab_users-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b60c111d20017e37e94ab0102d575dc4cf4c2b3397a64b0197dc12989002d88 |
|
MD5 | e5523faec6c74ff2cc0ff59524dc895d |
|
BLAKE2b-256 | b5723e0d51f7bd15117d14cc736a3d9d62b4b05642930cd40593d06a867be07e |