1.0.1 • Published 2 years ago

okta-exportappusers v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Okta-ExportAppUsers

Introduction

This utility script helps you to export all apps assigned to users in Okta. This requires you to generate a list of users with their okta user id (GUID) using APIs or browser plugin like rockstar

Steps

  1. Install Rockstar Okta browser plugin
  2. Go to Directory -> People and export all users (you can use filters). Please make sure you export 'User Id'
  3. Rename your output csv Okta id column to 'User Id'. If its already the same please ignore.
  4. Import the module in your nodejs project and call the associated functions.

Sample CSV

User IdStatusUsernameFirst nameLast namePrimary emailTitle
00u114....PROVISIONEDsomeone@gmail.comSomeoneSomethingsomeone@gmail.comHelpdesk admin

How to implement

const exportappusers = require('okta-exportappusers')
exportappusers.getAppsAssignedToUsers({
    fileName:'sample.csv',
    sleep: 1000,
    subdomain: "myoktasubdomain",
    apiKey: "myapikey",
    logFileName: "output.log"
});

Different arguments available to functions

You will need to specify these arguments to make the function call.

ParameterExample ValueDescription
fileNamesample.csvFile name which contains all Okta users (eg. Exported from Rockstar)
sleep1000Time in ms to wait before consecutive API calls to control rate limit
subdomainsampledomainYour Okta domain. For example if your okta tenant is mytenant.okta.com please use 'mytenant' as subdomain
apiKeyyour api keyPlease generate API Key from your Okta tenant to run scripts
logFileNameoutput.logName of the output file to be generated

Output Sample

user idApplication
00u11......Facebook
00u11....Twitter