amazon-ec2-mac-mdm-enrollment-automation icon indicating copy to clipboard operation
amazon-ec2-mac-mdm-enrollment-automation copied to clipboard

Issue with the enrollment script

Open ghost opened this issue 1 year ago • 2 comments

I am working on configuring the automation, have deployed secrets using the cft within AWS in the same region that I am trying to launch macs. I also found this video https://www.youtube.com/watch?v=8JOCR7-cOjc and the video is using the same script.

I launched the first mac with the idea of creating an image and I went through the entire process got the success message that said everything was configured and then as per the video, I tried to log out of the mac and log back in to test but when I look at /tmp/MMErrors.log I find the following message

/Users/Shared/enroll-ec2-mac.scpt:38828:38839: execution error: Can’t get text item 2 of "". (-1728)

The automation doesn't work.

I have tested the username and password and can confirm that I am able to access JAMF using those credentials. Any help will be appreciated.

ghost avatar Sep 20 '24 18:09 ghost

Hi @Jimmyd84, to check: are you using a username/password combination, or a Client ID/Client Secret from Jamf for the API credentials? Jamf deprecated the use of basic authentication for API use earlier this year, and that may result in the above error.

ds0x avatar Sep 24 '24 18:09 ds0x

Appreciate your response! that was it. Do you know if there is a way to modify the script or associate the api token within JAMF to a particular site?

ghost avatar Sep 27 '24 15:09 ghost