Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitlab_users-0.8.6-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for gitlab-users-0.8.6.tar.gz
Algorithm Hash digest
SHA256 1500638309451912ec24e32bc029d0dcd27708306519faf73eac1b86c8fea4cb
MD5 b28b4633424445b030ee6afba4947fbb
BLAKE2b-256 12bd3804d1ea61f8530c61506e4e9cb5482374da0bd39f6fb8e429ecbe6a105c

See more details on using hashes here.

File details

Details for the file gitlab_users-0.8.6-py3-none-any.whl.

File metadata

  • Download URL: gitlab_users-0.8.6-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for gitlab_users-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ce053c03e53d7186f87e7c079b8f09189a1a924a634f4a20858b8cd99bc74bfc
MD5 8ceb88d799a2678ea6bd86eaaaf8af07
BLAKE2b-256 3dbee2f27113516d572be51c9c47569a137573042e41b70ad7028e4249ec9652

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitlab_users-0.8.6-py3-none-any.whl:

Publisher: ci-publish.yml on boileaum/gitlab-users

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page