Someone will correct me I’m sure, but I believe you need to add a bearer token for API calls.
That may work on the bash script referenced in the post above. https://github.com/talkingmoose/Jamf-Scripts/blob/master/DeleteCasperRemotePolicies.sh . But the script above is using the jamf_pro_sdk which i’m not very familiar with. I did find that changing the “PromptForCredentials” to “prompt_for_credentials” at least allowed the script to partially work. But then the script throws a bunch of errors. I was hoping someone might have an updated script to accomplish this.
I got it working using the API token and the shell script. Thanks!