Skip to content

Could not obtain a token for use with Jamf's classic API #136

@jeffavanti

Description

@jeffavanti

Can someone help me resolve this issue. I get the following error when i try to connect jamf to snipeit

ERROR:root:Could not obtain a token for use with Jamf's classic API. Please check your username and password. Unable to obtain Jamf Token

Here is a copy of my config

[jamf]

This entire section is Required

url = jamf url
username = client ID
password = client secret

[snipe-it]
#Required
url = redacted
apikey = [ extremely long token]
manufacturer_id = 2
defaultStatus = 2
computer_model_category_id = 2
mobile_model_category_id = 3
#Not Required, uncomment to use
#computer_custom_fieldset_id = 3
#mobile_custom_fieldset_id = 4
#asset_tag = general serial_number # If not specified, defaults to jamf-{id} or jamf-m-{id}

EDIT THESE FIELDS SO THEY CORRESPOND WITH THE CUSTOM FIELD DB COLUMN NAMES IN YOUR SNIPE-IT INSTANCE

[computers-api-mapping]
name = general name
_snipeit_mac_address_1 = general mac_address
_snipeit_ram_2 = hardware total_ram_mb
_snipeit_hdd_3 = hardware storage drive_capacity_mb

[mobile_devices-api-mapping]
_snipeit_imei_4 = network imei
name = general name

[user-mapping] # The field from jamf that you want to search Snipe with
jamf_api_field = location username

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