jamf / mut

MIT License
133 stars 10 forks source link

Deleting from PreStage Enrollment Failing #52

Closed stephanpeterson closed 3 years ago

stephanpeterson commented 3 years ago

I'm trying to delete Macs from a PreStage Enrollment group but am being told the group ID doesn't exist:

2020-12-21 10:32:32 [INFO ]: Updating the current prestage scope at https://host.myorg.com:8443/uapi/v2/computer-prestages/2/scope/delete-multiple 2020-12-21 10:32:32 [ERROR ]: Failed scope update. 404. 2020-12-21 10:32:32 [ERROR ]: { "httpStatus" : 404, "errors" : [ { "code" : "INVALID_ID", "description" : "Computer Prestage with id 2 does not exist", "id" : "2", "field" : "id" } ] }

Yet, here's the URL:

https://host.myorg.com:8443/computerEnrollmentPrestage.html?id=2&o=r

This is an on-prem instance running v10.26 and I'm using my account which has full rights.

Further, I'm running 5.3.2 of MUT.

mike-levenick commented 3 years ago

Hey Stephan,

This is actually a Jamf Pro product issue related to how the UAPI handles requests from users with LDAP group permissions.

Making a new, local, admin user in Jamf Pro, and using that instead, should resolve the issue for you. :)

mike-levenick commented 3 years ago

Spoke with Stephan via slack and confirmed local user resolved issue.