How does one go about calling data from the JSS for use in BASH scripts?
For example, I have the following code:
/System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount -n $username -h /Users/$username -S -v
For $username I would it to equal "Username" from a targeted computer within JSS> ComputerName> User and Location> Username.
My use case would be for users of Casper Remote who were to migrate Network managed users to Local managed users. They would select the target machine within Casper Remote and a script that basically performs the above. They don't really need to lookup who the user is because JSS knows what user this computer belongs to. So for them, this process is very easy because I am leveraging JSS's database.