Sojib Shourav opened merge request !1: Add CLI tool for managing user roles (admin/owner) at Sojib Shourav / SSM Blue Zone

Sojib Shourav
2026-03-19T22:44:16Z

Overview\nAdded a comprehensive CLI tool for managing user roles and permissions in GitLab projects and groups.\n\n## Features\n- List members - View all members with their current roles\n- Assign roles - Assign admin/owner/maintainer/developer/reporter/guest roles\n- Remove members - Remove users from projects or groups\n- Support for projects and groups - Manage at both levels\n\n## Files Added\n- cli/role_manager.py - Main CLI application\n- cli/requirements.txt - Python dependencies\n- cli/README.md - Complete documentation and usage examples\n\n## Usage Examples\nbash\n# List project members\npython role_manager.py --token $GITLAB_TOKEN list-members --project my-group/my-project\n\n# Assign owner role\npython role_manager.py --token $GITLAB_TOKEN assign --project my-group/my-project --user john_doe --role owner\n\n# Remove user\npython role_manager.py --token $GITLAB_TOKEN remove --project my-group/my-project --user john_doe\n\n\n## Setup\n1. Install dependencies: pip install -r cli/requirements.txt\n2. Generate GitLab personal access token with api and admin scopes\n3. Run commands with --token parameter or set GITLAB_TOKEN environment variable"