As we are moving towards automation and trying to create an environment where everything can be available in Self-service i need to implement an idea of a script or anything which will help me in completing the below.
A policy will be available in Self-service and on clicking on 'Install' it will identify the Hostname of the system, (That i know to get and store it in a variable) then it will add the hostname to Scope - 'Target' of a Policy in JSS/JAMF or Exclusion list of a ploci in JSS/JAMF and execute the later part. The rest past is ready and tested but i am unable to figure out this part.
Any help would be very helpfull for me