<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007RXmhHCATOkta Classic EngineDirectoriesAnswered2025-04-14T09:02:35.000Z2022-02-16T20:29:02.000Z2022-04-08T15:07:51.000Z

bec5n (bec5n) asked a question.

New To Okta - How To Export

I have recently been introduced to Okta and one of my first tasks is to complete an audit of users in Okta. I have been shocked to find out that there is no export feature with Okta itself and the last time anyone updated about it was 3 years ago. Here's the rub, all solutions relate to using Powershell which I have almost zero knowledge of how to do. I need to be able to pull profile information associated with each account.

 

I found a post leading to the following site in Github: https://github.com/adrwh/okta-tools/blob/master/Export-AllOktaUsers.ps1

 

I can generate the API token and paste it but I am unsure if I am doing the Resource Endpoint correctly (my understanding after digging is I need an URI (not URL) but I can't figure out how to find it) and I keep getting an error with the $json line:

*Write-Output "($Users).count:OK"

convertfrom-json : Invalid JSON primitive: .

At line:16 char:31

+   $json = $result.Content | convertfrom-json

+                ~~~~~~~~~~~~~~~~

  + CategoryInfo     : NotSpecified: (:) [ConvertFrom-Json], ArgumentException

  + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

 

Cannot index into a null array.

At line:19 char:5

+   $url = $next

+   ~~~~~~~~~~~~

  + CategoryInfo     : InvalidOperation: (:) [], RuntimeException

  + FullyQualifiedErrorId : NullArray

 

I have never run into the term JSON and I have no idea where to go next to try and troubleshoot this further. I have tried some googling but to say I am a bit lost is an understatement.

 


This question is closed.
Loading
New To Okta - How To Export