Hello,
Before the release of Monterey, I was experimenting with krypted's MakeMeAnAdmin script. After the release of Monterey, I started noticing issues with the script, especially when executed on Apple Silicon Macs. Then, I discovered geekquixotic's MakeMeAnAdmin Script. The script seems to work very well for elevation and removal of privileges, but I'm having some trouble getting the logging and the group removal feature working. I'm hoping someone else uses this variation of MakeMeAnAdmin and can help me figure out what I might be doing wrong.
I've set Parameter 6 to an authorization request header that I generated using DebugBear's basic auth header generator. The Jamf Account I'm using currently has full admin privileges for testing purposes. If the username was Cowboy and the password was Mustang1234, the value I'm putting in Parameter 6 would be the following (not the actual username and password for obvious reasons):
Q293Ym95Ok11c3RhbmcxMjM0
One thing to note is that our JSS uses single sign-on with Azure, and the account I'm using is a standard, non-LDAP account.
I have Parameter 7 set to Y, and Parameter 8 is the name of the static group.
Any help would be greatly appreciated. Please let me know if I can provide more details on how I have the script or policy configured in JSS.