Query Okta API for
- Groups the given user is in
- All users in the given group
- Difference of 2 groups
- Rules related to a group
# requires go to be installed
go install github.com/popsu/okta-info@latest
Or download binary from the releases page
Set the following environment variables:
OKTA_INFO_ORG_URL=https://<your-org>.okta.com
OKTA_INFO_API_TOKEN=<your-api-token>
-
Query for groups the given user is in:
# user.name without @<your-org> okta-info user <user.name>
-
Query for all users in the given group:
okta-info group <group-name>
-
Query difference of two groups:
okta-info diff <group-name-1> <group-name-2>
-
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
By default deprovisioned users are not shown. To show them, set the following environment variable to truthy value: OKTA_INFO_SHOW_DEPROVISIONED_USERS=true