diff --git a/src/users.psm1 b/src/users.psm1 index e543320a4..a6e55ec65 100644 --- a/src/users.psm1 +++ b/src/users.psm1 @@ -160,14 +160,14 @@ function Update-VSTeamUser } $id = $user.id - $licenseOld = $user.accessLevel.accountLicenseType - } else { - $user = Get-VSTeamUser -Id $id + $user = Get-VSTeamUser -Id $id } + $licenseOld = $user.accessLevel.accountLicenseType + $obj = @{ from = "" op = "replace"