AndrewPla / TOPdeskPS

PowerShell module to interact with the TOPdesk API
MIT License
30 stars 12 forks source link

Set-TdOperator set issues #94

Closed digitalexpl0it closed 5 years ago

digitalexpl0it commented 5 years ago

Prerequisites

Put an X between the brackets on each line to confirm you have completed them:

Describe the bug Unable to Set Operator as Archived

To Reproduce $Validate = Get-TdOperator -TOPdeskLoginName $user $OpID = $Validate.id Set-TdOperator -Operator $OpID -ArchiveReason (Get-TdArchiveReason 'No longer employed').id -LoginPermission:$false

Example doesn't work either: Get-TdOperator -TOPdeskLoginName 'first.last' | Set-TdOperator -ArchiveReason (Get-TdArchiveReason 'no longer employed').id -LoginPermission:$false

Expected behavior The specified Operator should be archived and login disabled

Screenshots or Transcripts Set-TdOperator : Parameter set cannot be resolved using the specified named parameters.

System Details

digitalexpl0it commented 5 years ago

Looks like its -LoginPermission:$false which is the issue. Removing this switch allows me to archive the account