okta-admin

command module
v0.0.0-...-808e43e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

okta-admin Command Line Utility

Command line utility to perform administrative tasks for an Okta org.

Documentation

For information on APIs and sub commands available, see the markdown documents available using the links below:

Filtering and projecting results

Results from the okta-admin utility are returned as string representations of json objects.

Filtering results using the --filter flag

Results can be filtered at the remote API using the --filter flag for a given command, for instance:

okta-admin users list --filter 'status eq \"ACTIVE\"'

would return only the users with a status value of ACTIVE

Quertying and projecting results using the --jsonquery flag

Once results are returned they can be further filtered, projected or have other operations performed using the --jsonquery flag, for example:

okta-admin users list --jsonquery '[0]'

would return the first user in the org

okta-admin users list --jsonquery '0.profile.email'

would return the email of the first user in the org (as a scalar value - not an object)

okta-admin users list --jsonquery '#'

would return the number of users in the org

okta-admin users list --jsonquery '#.profile.email'

would return a list of all users emails in the org

Prerequisites

Instructions

The following environment variables must be set to run okta-admin commands: OKTAORGURL and OKTAAPITOKEN

Build the Application
go build
Windows Example (Powershell)
$env:OKTAORGURL = 'https://avensolutions.okta.com'; $env:OKTAAPITOKEN = 'xxxYOURTOKENHERExxx'; .\okta-admin.exe users list
Linux/Mac Example
OKTAORGURL=https://avensolutions.okta.com; OKTAAPITOKEN=xxxYOURTOKENHERExxx; ./okta-admin users list

Documentation

Overview

Copyright © 2021 JEFFREY AVEN jeffrey.aven@gammadata.io

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL