{"id":22575032,"url":"https://github.com/safwanuddinmairaj/github-users-list-shellscript","last_synced_at":"2026-05-07T01:04:58.290Z","repository":{"id":251979215,"uuid":"839026380","full_name":"SafwanUddinMairaj/GitHub-Users-List-ShellScript","owner":"SafwanUddinMairaj","description":"This script is designed to list all users who have read access to a specified GitHub repository. It uses the GitHub API to fetch and display collaborators with read permissions for a given repository.","archived":false,"fork":false,"pushed_at":"2024-08-07T05:02:11.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T15:35:09.905Z","etag":null,"topics":["github","linux","shell-script","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SafwanUddinMairaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-08-06T20:18:30.000Z","updated_at":"2024-08-11T10:35:13.000Z","dependencies_parsed_at":"2024-08-06T23:54:37.245Z","dependency_job_id":"59211bd0-f718-4c27-87f4-f265a65574a1","html_url":"https://github.com/SafwanUddinMairaj/GitHub-Users-List-ShellScript","commit_stats":null,"previous_names":["safwanuddinmairaj/github-users-list-shellscript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FGitHub-Users-List-ShellScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FGitHub-Users-List-ShellScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FGitHub-Users-List-ShellScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafwanUddinMairaj%2FGitHub-Users-List-ShellScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SafwanUddinMairaj","download_url":"https://codeload.github.com/SafwanUddinMairaj/GitHub-Users-List-ShellScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246052123,"owners_count":20715973,"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":["github","linux","shell-script","ubuntu"],"created_at":"2024-12-08T03:08:42.576Z","updated_at":"2026-05-07T01:04:58.258Z","avatar_url":"https://github.com/SafwanUddinMairaj.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GitHub Repository Access List Script\n**Description**\nThis script, list-users.sh, is designed to list all users who have read access to a specified GitHub repository. It uses the GitHub API to fetch and display collaborators with read permissions for a given repository.\n\n**Usage**\nTo use this script, you need to have a GitHub personal access token with the necessary permissions to access the repository information. The script takes two arguments: the repository owner's username and the repository name.\n\n**Prerequisites**\n- **cURL**: This script uses `curl` to make HTTP requests to the GitHub API.\n- **jq**: A lightweight and flexible command-line JSON processor, required to parse JSON responses from the GitHub API.\n- **GitHub Personal Access Token**: You need a personal access token with the appropriate scopes to access repository collaborators.\n\n### Installation\n\nEnsure you have `curl` and `jq` installed on your system. You can install them using the following commands:\n\n**For Debian/Ubuntu:**\n```bash\nsudo apt-get install curl jq\n```\n\n**For CentOS:**\n```bash\nsudo yum install curl jq\n```\n\n## Script Usage\n\n1. **Set your GitHub username and personal access token as environment variables**:\n\n    ```bash\n    export username=\"your-github-username\"\n    export token=\"your-personal-accesstoken\"\n    ```\n\n2. **Grant permission according to your need using chmod command**\n    \n3. **Run the script** with the repository owner's username and repository name as arguments:\n\n    ```bash\n    ./list-users.sh \u003crepo_owner\u003e \u003crepo_name\u003e\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafwanuddinmairaj%2Fgithub-users-list-shellscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafwanuddinmairaj%2Fgithub-users-list-shellscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafwanuddinmairaj%2Fgithub-users-list-shellscript/lists"}