
Community Archive (Customer) asked a question.
MOVEit Transfer 2018 REST Script - Delete_Users_From_CSV.ps1
Powershell script to login and delete multiple users from MOVEit Transfer 2018 Transfer from a CSV.

Community Archive (Customer) asked a question.
Powershell script to login and delete multiple users from MOVEit Transfer 2018 Transfer from a CSV.
There's a problem with this script.
This block:
Should instead reference the user id, not the user name:
When attempting to use the script as is, the (lazy) API error handler returns a misleading error message:
The end result is that -- to delete users with the API, using a CSV, the approach would have to be loading a CSV containing user id values and deleting those user id values. For most practical purposes, the MOVEit Transfer user id will not be a value that any organization stores, so a more realistic use case would be loading a list of user names from a CSV file, maybe storing that in an array or hash, then using the API to obtain a list of users (user names and user id's), then looping through that list of users, comparing the user name to the array or hash, and if a match is found, using the user id in the API call to delete the user account.
Something like this: