sharefile user creation

i’m trying to create a user into sharefile but i am unable to set it as an employee, it is always set as a client.

anyone has more info regarding this?

thanks!

Add-PSSnapin sharefile

#New-SfClient -Name “C:\temp\MySubdomain.sfps”
$sfClient = Get-SfClient -Name “C:\temp\MySubdomain.sfps”

$user = New-Object ShareFile.Api.Models.User

$user.FirstName = ‘Firstame’
$user.LastName = ‘Lastname’
$user.Email = ‘firstname.lastname@somecompany.com’

$user.Company = ‘somecompany’

Send-SfRequest $sfClient -Method POST -Entity Users -Body $user -Parameters @{
“addshared” = “true”
}