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.cfgfollowing 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce053c03e53d7186f87e7c079b8f09189a1a924a634f4a20858b8cd99bc74bfc
|
|
| MD5 |
8ceb88d799a2678ea6bd86eaaaf8af07
|
|
| BLAKE2b-256 |
3dbee2f27113516d572be51c9c47569a137573042e41b70ad7028e4249ec9652
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gitlab_users-0.8.6-py3-none-any.whl -
Subject digest:
ce053c03e53d7186f87e7c079b8f09189a1a924a634f4a20858b8cd99bc74bfc - Sigstore transparency entry: 227265213
- Sigstore integration time:
-
Permalink:
boileaum/gitlab-users@21112cb40664ef0a6757c0508c965ec4af786286 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/boileaum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-publish.yml@21112cb40664ef0a6757c0508c965ec4af786286 -
Trigger Event:
push
-
Statement type: