How to keep "Full Jamf Pro" SIte selected at all times.

Yamashiro
New Contributor III

Hello All,
I tried getting script information with API as follows.

curl - u user: passwd - X GET https://mydomain.com/JSSResource/scripts

When I logged into Jamf Pro with the same account and selected Site, I found that the execution result of the above API changes.

  • Select "Full Jamf Pro" for Site and execute API(SUCCESS)

    <? xml version = "1.0" encoding = "UTF - 8"?>
    <scripts>
    ....
    </scripts>
  • Select "Site A" for Site and execute API(FAILED)

    ...
    Unauthorized </ p>
    <p> The request requires user authentication </ p>
    ...

I would like to keep "Full Jamf Pro" selected at all times, so as not to cause API errors.

Please let me know if you have any information you know.

1 REPLY 1

mscottblake
Valued Contributor

I suggest creating a new user in the JSS for the sole purpose of running API scripts. You can limit the privileges to only what the script needs, and you don't have to worry about the site scope of the user since you will never be logging in to it.