
00u34nstrkQWZDPIAAM1.4207604653952163E12 (Customer) asked a question.
Hi,
I am using powershell script mentioned in below article for deleting the users in bulk, however it is not working and don;t see any errors as well .
I am using the correct orgURL, apikey, correct file path etc, however still not working . It just displays below dir and exiting . No log files generated and records are also not deactivated or deleted .
Tried few times and still same issue . Please let me know what is the issue ?

Hi @00u34nstrkQWZDPIAAM1.4207604653952163E12 (Customer),
Anything related in the Event Viewer?
Make sure you're running your command prompt with administrator permissions. Perhaps add some more outputs to the PS script and see if you can detect anything off?
Or, if you're able to, use Postman as described below.
https://support.okta.com/help/s/article/How-to-bulk-delete-users-via-Postman?language=en_US
-Jani
Thank you for your response . Do you mean system logs ? I don;t see anything in system logs .
Also tried via postman as well and start run is not getting enabled .
what's your comand and parameters. what's the csv file like?
function ReadCsv()
{
Import-Csv $filepath |
ForEach-Object {
$login = $_.login
Write-Host $login + " Will be deleted `n"
GetUsers $login
}
}
ReadCsv