Skip to content

Help adjusting script #28

@crant3

Description

@crant3

Hey everyone,

I am new here, have no code experience, however I heavily use Kandji and Snipe IT in my day to day work.

I am looking to make some adjustments to the existing script so it does the following:

  • When a user is assigned to a Kandji device, update its status in Snipe to "in use".
  • The Snipe Asset Tag should be formatted as: Alpaca - Serial Number
  • The Snipe Asset Name should be: Firstname Lastname - Serial Number
  • Standardize the Model Names in Snipe according to this logic (avoiding new variations):
  1. All MacBook Pro models: MacBook Pro 16' (Category: Engineer Laptop)
  2. MacBook Air 15': MacBook Pro 15' (Category: Leadership Laptop)
  3. MacBook Air 13': MacBook Pro 13' (Category: Non-Engineer Laptop)
  • If a tag exists in Kandji, update the Snipe Location field with that tag value.
  • Devices in "enrollment" status in Kandji should be created in Snipe with the status "in stock".

Is this something I can be helped with?
Thank you.
Cristina.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions