Skip to main content
Question

Using API - Getting INVALID_PRIVILEGE when trying to access computer-prestages endpoint

  • December 18, 2024
  • 1 reply
  • 34 views

Forum|alt.badge.img+3

Has anyone managed to get around the "403 - INVALID_PRIVLEDGE" error when trying to use the API?

I created several API roles that basically give read privilege to every single thing that Jamf Pro allows you to assign read access to, then I assigned those roles to an API user.

I'm able to create the token from oath2 and use it to hit various endpoints, so I know that this user's credentials and my basic setup are correct. The API does return 200 OK codes and I get data back.

However, when I try to hit any version of the computer_prestages endpoint (v1, v2, v3) I get 

"httpStatus": 403,
"errors": [
{
"code": "INVALID_PRIVILEGE",
"description": "Forbidden",
"id": "0",
"field": null
}
]
}
 
What is an invalid privilege? It seems different than insufficient privleges. 

1 reply

mattjerome
Forum|alt.badge.img+7
  • Jamf Heroes
  • December 19, 2024

It does mean invalid privilege. I think (I’m on my phone rn) prestages are a different permission than computers. Double check that. If