Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Export GitLab user information and create user accounts using python-gitlab API

Project Description

A simple command line interface to handle GitLab user accounts, based on python-gitlab.

Installation

  • Install the package on your system
python setup.py install
  • 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 a list of users 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
Release History

Release History

This version
History Node

0.5

History Node

0.4

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
gitlab-users-0.5.tar.gz (6.7 kB) Copy SHA256 Checksum SHA256 Source Jun 3, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting