We are pretty new to Jamf and still trying to understand the scripting. We have a renamecomputer script that we got as part of our onboarding for computers. Was working great till we started sending in the department on the user from Okta. So now the naming is off. I am pretty good at Powershell and C#, but bash scripts I am struggling with. Is there way in a bash script to look up a department value in like a switch statement?
example if the department is "IT", then can you do something like this?
switch (department)
case "irs":
value = 123
case "IT":
value = 987
Any help or pointers to reference links would be great. I am not sure what the bash term would be to do that so if I can get someone to help with that, might be able to get this figured out.