Code Monkey home page Code Monkey logo

okta-cli's Introduction

Okta-Cli

This is my collection Okta-Cli Commands

How to install Okta-Cli

  • install https://pypi.org/project/okta-cli/ or if you have pip installed (pip install okta-cli)
  • Setup config file: okta-cli config new -n xx-username -u https://companyurl.okta.com/ -t
  • If you run into issues after installing delete the config file and try running the install again file is located inside the ~/Library/Application\ Support/okta-cli if you installed on a Mac
  • If you need to run two commands simultaneously use the | option
  • ----------------------------------

    User Commands

  • okta-cli users list (list all the users in your Okta tenet)
  • okta-cli users deactivate [email protected] (you can use the user ID or email)
  • okta-cli users get email or id (when searching for a specific user)
  • okta-cli users update "Users Okta ID" -s credentials.password.value="password2020!" (to change users password)
  • okta-cli users list | grep username (use this to find a specific user)
  • okta-cli users update userid -c credentials.recovery_question -s question="What car is your dream car?" -s answer="Ford Truck" (Use this to reset a users recovery question)

  • Application Commands

  • okta-cli apps list (list all the application in your Okta tenet)
  • okta-cli apps activate appid
  • okta-cli apps deactivate appid
  • okta-cli apps delete appid (Deactivate must happen before deletion)
  • okta-cli apps users -i appid (list all the users who are assigned this application)
  • okta-cli apps users --csv -i appid (prints out the csv version)
  • okta-cli apps users -j -i appid (prints out the YAML version)

  • Group Commands

  • okta-cli groups list (list all the groups in your Okta tenet)
  • okta-cli groups users groupid (list all the users in the group)
  • okta-cli groups get "Okta group ID" (prints info one Okta group)
  • okta-cli groups clear --id "Okta group ID" (this clears all the users from the group)
  • okta-cli groups add --name "okta group name" (this creates a new Okta group)
  • okta-cli groups delete groupid (this deletes a group using the groupid)
  • okta-cli groups delete "okta group name" (this deletes an okta group)
  • ----------------------------------

    Bulk Functions

  • okta-cli dump (use this to dump all your Okta info tenet into a csv)
  • okta-cli's People

    Contributors

    duckyafi avatar

    Watchers

    James Cloos avatar  avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.