Skip to main content

Export GitLab users information and automate user accounts creation

Project description

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gitlab-users-0.7.tar.gz (7.3 kB) Copy SHA256 hash SHA256 Source None Sep 5, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page