{"id":16741555,"url":"https://github.com/duaraghav8/okta-admin","last_synced_at":"2025-08-22T12:14:05.070Z","repository":{"id":98907482,"uuid":"214359751","full_name":"duaraghav8/okta-admin","owner":"duaraghav8","description":"Commandline application to perform administrative tasks in Okta","archived":false,"fork":false,"pushed_at":"2020-02-02T12:00:10.000Z","size":1042,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-12T06:37:29.831Z","etag":null,"topics":["cli","devops","okta"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duaraghav8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2019-10-11T06:26:11.000Z","updated_at":"2025-03-14T14:49:17.000Z","dependencies_parsed_at":"2023-05-10T21:31:05.844Z","dependency_job_id":null,"html_url":"https://github.com/duaraghav8/okta-admin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/duaraghav8/okta-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duaraghav8%2Fokta-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duaraghav8%2Fokta-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duaraghav8%2Fokta-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duaraghav8%2Fokta-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duaraghav8","download_url":"https://codeload.github.com/duaraghav8/okta-admin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duaraghav8%2Fokta-admin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271636033,"owners_count":24794144,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","devops","okta"],"created_at":"2024-10-13T01:03:31.612Z","updated_at":"2025-08-22T12:14:05.018Z","avatar_url":"https://github.com/duaraghav8.png","language":"Go","readme":"# okta-admin\nThis is a Commandline application to perform administrative tasks in [Okta](https://www.okta.com).\n\nIt does not allow you to make requests to arbitrary endpoints of the Okta API. Rather, it is designed to speed up frequently performed administrative tasks like creating users, adding them to groups, listing resources and so forth.\n\n## Installation\nDownload the pre-compiled binary for your platform from the [Releases](https://github.com/duaraghav8/okta-admin/releases) page or use `make` to compile the code yourself (see [Developing](#developing)). Move the binary to an appropriate directory on your system to make it available on the `PATH`.\n\n## Usage\n\nUse `-help` to display the list of commands available and to get information about specific commands.\n\n### Examples\n1. Create a new user in your Okta Organization\n```bash\nokta-admin create-user \\\n    -org-url https://hogwarts.okta.co.uk \\\n    -api-token xxxxx \\\n    -email harry.potter@hogwarts.co.uk \\\n    -fname Harry -lname Potter \\\n    -team Seekers\n```\nThe above command creates a new user in an organization and assigns them a Team. It also highlights how you can specify the organization URL and Okta API Token via commandline arguments, although **this is not the recommended way to supply credentials**.\n\n2. Add a member to groups in the organization\n```bash\nexport OKTA_ORG_URL=\"https://hogwarts.okta.com/\"\nexport OKTA_API_TOKEN=\"xxxxx\"\n\nokta-admin assign-groups -email albus.dumbledore@hogwarts.co.uk -groups TheOrder\n\nokta-admin assign-groups \\\n    -email draco.malfoy@hogwarts.co.uk \\\n    -groups \"Slytherin, pure-blood, rich_kids\"\n\nokta-admin assign-groups \\\n    -email newt.scamander@hogwarts.co.uk \\\n    -groups hogwarts-alumni,MinistryOfMagic\n```\nThese commands demonstrate the different ways in which you can specify `groups` to assign to a member. Any option capable of accepting multiple values can be given a comma-separated list of them. Notice how the organization credentials this time are passed via environment variables. This is the recommended way to work with Okta Admin, especially when running the tool in automation.\n\n3. List Groups present in the organization\n```bash\n# Load credentials from an environment file\nsource ~/.okta/creds.env\n\n# List names of all groups\nokta-admin list-groups\n\n# Get info about select groups\nokta-admin list-groups -groups azkaban,durmstrang -detailed\n```\n\n## Developing\nThis project uses [Go Modules](https://blog.golang.org/using-go-modules) for dependency management. You must have at least Go version 1.11 installed on your system to develop this project.\n\n### Test\n```bash\nmake fmt\nmake test\n```\n\n### Dependencies\nBefore sending a PR or building with your local changes, use `mod` to clean up dependencies.\n```bash\n# Install required dependencies \u0026 remove irrelevant ones\ngo mod tidy\n# Add dependencies to vendor/\ngo mod vendor\n```\n\n### Build\nTo build the binary for your platform(s), run the following make tasks:\n```\n# Linux\nmake linux/amd64\n\n# Darwin\nmake darwin/amd64\n\n# Windows\nmake windows/amd64\n```\n\n## License\nThis code is licensed under the MPLv2 license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduaraghav8%2Fokta-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduaraghav8%2Fokta-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduaraghav8%2Fokta-admin/lists"}