Skip to main content

An Okta command line interface for scripting and quickly performing routine tasks

Project description

Okta-CLI

This is a python-based CLI tool for Okta. It is not made or maintained by or in any way affiliated with anyone working at Okta.

The feature set is quite complete, but based on the author's needs, which currently are:

  • user functions
    • list users (using API search= and query= functionality, and local filtering)
    • update users
    • bulk-update users, with parallel threads (hundreds of updates in seconds)
  • group functions (add users, remove users, list groups, list members)
  • handling of multiple Okta instances (e.g. a test cell, a production cell, a personal cell, ...)
  • updates and (now really fast) bulk-updates of user profiles (using CSV or Excel files)
  • export of profile data (into CSV or JSON)

NOTE

REQUIRES Python 3.6+

Quickstart

$ pip install okta-cli
$ okta-cli config new -n my-profile -u https://my.okta.url -t API_TOKEN
$ okta-cli users list -f 'profile.email eq "my@email.com"'
$ okta-cli users update id012345678 --set email=my@other.email.com --set phone=01234/5678
$ okta-cli users bulk-update update-list.xlsx        # CSV is okay as well :)
$ okta-cli groups adduser -g 01231324 -u 0129353892
$ okta-cli groups removeuser -g ... -u ...

Config

Running config new (see above) will store a JSON configuration file in the directory determined by the appdirs module.

References

This project uses a few nice other projects:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

okta_cli-14.2.0-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file okta_cli-14.2.0-py3-none-any.whl.

File metadata

  • Download URL: okta_cli-14.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for okta_cli-14.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b97b198101bf1dbcfdab20cff9baa939625760b42b364d9ec7bf6746de434592
MD5 19efa6dd88d512838c370f4b285902da
BLAKE2b-256 3bfab438d7e50587acd0d0fc1ffc262a516cce88097cad24be53b161227e8371

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page