{"id":15470434,"url":"https://github.com/boileaum/gitlab-users","last_synced_at":"2025-07-25T07:35:22.796Z","repository":{"id":45579677,"uuid":"106572683","full_name":"boileaum/gitlab-users","owner":"boileaum","description":"A CLI tool to manage GitLab users.","archived":false,"fork":false,"pushed_at":"2023-02-26T19:42:16.000Z","size":50,"stargazers_count":9,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T12:07:59.387Z","etag":null,"topics":["cli","gitlab","python","user-management"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boileaum.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-11T15:29:02.000Z","updated_at":"2023-07-17T04:13:38.000Z","dependencies_parsed_at":"2025-03-03T16:47:16.403Z","dependency_job_id":null,"html_url":"https://github.com/boileaum/gitlab-users","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boileaum%2Fgitlab-users","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boileaum%2Fgitlab-users/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boileaum%2Fgitlab-users/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boileaum%2Fgitlab-users/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boileaum","download_url":"https://codeload.github.com/boileaum/gitlab-users/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237832,"owners_count":21397401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gitlab","python","user-management"],"created_at":"2024-10-02T02:04:39.535Z","updated_at":"2025-07-25T07:35:22.786Z","avatar_url":"https://github.com/boileaum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitlab-users\n\n[![CI](https://github.com/boileaum/gitlab-users/actions/workflows/ci-publish.yml/badge.svg)](https://github.com/boileaum/gitlab-users/actions/workflows/ci-publish.yml)\n[![Latest Release](https://img.shields.io/github/v/release/boileaum/gitlab-users?label=release)](https://github.com/boileaum/gitlab-users/releases)\n[![Python Version](https://img.shields.io/badge/python-3.9+-blue.svg)](https://python.org)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Doc](https://img.shields.io/badge/doc-sphinx-blue)](https://boileaum.github.io/gitlab-users/)\n\nA CLI and an API to manage GitLab user accounts, based on [python-gitlab](https://github.com/python-gitlab/python-gitlab).\n\n## Features\n\n- List users and groups from a GitLab instance\n- Export users to CSV\n- Bulk create/delete users from CSV\n- Export SSH keys\n\n## Installation\n\n```sh\npip install gitlab-users\n```\n\nRequires Python 3.9+ and a valid `python-gitlab` configuration (`~/.python-gitlab.cfg`).\n\n## Usage\n\nGet help and list all commands:\n```sh\ngitlab-users -h\n```\n\nList all users:\n```sh\ngitlab-users list-users\n```\n\nList all groups:\n```sh\ngitlab-users list-groups\n```\n\nExport all users to a CSV file:\n```sh\ngitlab-users export-users users.csv\n```\n\nCreate users from a CSV file (see example format below):\n```sh\ngitlab-users create-from-csv users.csv\n```\n\nDelete users from a CSV/text file (usernames in first column):\n```sh\ngitlab-users delete-from-csv users.csv\n```\n\nDelete a single user (asks for confirmation):\n```sh\ngitlab-users delete-user USERNAME\n```\n\nExport SSH keys of a user:\n```sh\ngitlab-users export-ssh-keys USERNAME\n```\n\n### Example CSV format\n\n```text\n# username, name, email, [organization], [location], [group], [access_level]\n# Note: The fields in square brackets are optional and can be omitted if not needed.\nww,Diana Prince,wonder.woman@themyscira.org,,Themyscira\nwayne,Bruce Wayne,bruce.wayne@wayne-enterprises.com,Wayne Enterprises,Gotham City,board,owner\n```\n\n## Development\n\n- See [CONTRIBUTING.md](CONTRIBUTING.md) for dev setup, linting, testing, and release instructions.\n- Run all tests: `pytest`\n- Lint and format: `ruff check .` and `black .`\n\n## Documentation\n\n- Full API and usage documentation: [Sphinx HTML docs](https://boileaum.gitlab-users.pages.gitlab-tools/docs/)\n- To build locally:\n  ```sh\n  cd docs\n  make html\n  ```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboileaum%2Fgitlab-users","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboileaum%2Fgitlab-users","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboileaum%2Fgitlab-users/lists"}