Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Can't checkout accessory #307

Description

@OWA-dbell

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions