Skip to content

popsu/okta-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Okta-info

What?

Query Okta API for

  1. Groups the given user is in
  2. All users in the given group
  3. Difference of 2 groups
  4. Rules related to a group

Installation

# requires go to be installed
go install github.com/popsu/okta-info@latest

Or download binary from the releases page

Usage

Set the following environment variables:

OKTA_INFO_ORG_URL=https://<your-org>.okta.com
OKTA_INFO_API_TOKEN=<your-api-token>
  1. Query for groups the given user is in:

    # user.name without @<your-org>
    okta-info user <user.name>
  2. Query for all users in the given group:

    okta-info group <group-name>
  3. Query difference of two groups:

    okta-info diff <group-name-1> <group-name-2>
  4. Query rules related to a group:

    Currently only works for few rules, so this might not work as expected

    okta-info rule group <group-name> # Search using group name
    okta-info rule name <rule name> # Search using rule name

Deprovisioned users

By default deprovisioned users are not shown. To show them, set the following environment variable to truthy value: OKTA_INFO_SHOW_DEPROVISIONED_USERS=true

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages