Export GitLab users information and automate user accounts creation
Project description
gitlab-users
A simple command line interface to manage 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.8.6.tar.gz
(9.7 kB
view details)
File details
Details for the file gitlab-users-0.8.6.tar.gz
.
File metadata
- Download URL: gitlab-users-0.8.6.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1500638309451912ec24e32bc029d0dcd27708306519faf73eac1b86c8fea4cb |
|
MD5 | b28b4633424445b030ee6afba4947fbb |
|
BLAKE2b-256 | 12bd3804d1ea61f8530c61506e4e9cb5482374da0bd39f6fb8e429ecbe6a105c |