I have a powershell script which will return a list of usernames that are no longer using Octopus to a variable, this wass quite simple.
The difficulty I am having is a command to delete the users i have in a variable.
Is there a simple command or syntax that can do this?
$usernames
$endpoint = New-Object Octopus.Client.OctopusServerEndpoint $OctopusURI,$apikey
$repository = New-Object Octopus.Client.OctopusRepository $endpoint
$repository.Users.Delete($usernames)
The delete method doesnt work,
thanks
B