ShareFile-PowerShell
ShareFile-PowerShell copied to clipboard
Send-SFRequest not piping objects over to sorting objects correctly
Hi,
next one ;)
I'm fetching all accounts filtering the administrative account
$sfAccountsEmployees = Send-SfRequest -Client $sfLogin -Entity Accounts/Employees | Where-Object {$_.Email -notlike $sfUsername}
$sfAccountsEmployeestoDelete = $sfAccountsEmployees | Where-Object {$_.Email -notlike $sfUsername}
$sfUserName is the Account used for logging on sharefile
As you can see now here in the screenshot filtering does not occur on $sfAccountsEmployees

Cheers, Mauricio