I have a scheduled job in (unfortunately) PowerShell that updates user info from Jamf from their Active Directory records. I have to create a Department in Jamf before I can assign it to a user, and that's working just fine unless the name of the department has characters in it that need to be encoded. I've managed to work through that for the most part by converting an ampersand to & for example, but I can't for the life of me figure out how to get or create departments that have a forward slash in their name!
So if I have a department named THIS/THAT I'd use the url:
https://yourServer.jamfcloud.com/JSSResource/departments/name/THIS/THAT
But obviously the slash is a problem. What do I replace it with?