-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Context
I'm trying to checkout accessories to a user and getting an error.
set-snipeitaccessoryowner -id <accessory id> -assigned_to <user id>
Your Environment
- SnipitPS Module version used: 1.10.227
- Operating System and PowerShell version: Windows 11, PS 5.1
- Snipe It version: v7.0.13 build 15514
Expected Behavior
Check the asset out to the user specified.
Current Behavior
The error below:
> set-snipeitaccessoryowner -id 1 -assigned_to 1
Invoke-SnipeitMethod :
assigned_user assigned_asset assigned_location
------------- -------------- -----------------
{The assigned user field is required when none of assigned asset / assigned location are present.} {The assigned asset field is required when none of assigned user / assigned location are present.} {The assigned location field is req...
At C:\Program Files\WindowsPowerShell\Modules\SnipeitPS\1.10.227\Public\Set-SnipeitAccessoryOwner.ps1:69 char:27
+ $result = Invoke-SnipeitMethod @Parameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-SnipeitMethod
Metadata
Metadata
Assignees
Labels
No labels