Skip to main content
Question

Passing parameters for script using terminal

  • September 10, 2024
  • 2 replies
  • 1 view

Forum|alt.badge.img+6

Is it possible to pass parameters for a script through the jamf policy -trigger command? For example, if I wanted to pass an end user's  email into a script that is being run in the policy I am calling can you enter sudo jamf policy -trigger <policyname> <user@email.com>

2 replies

Forum|alt.badge.img+5
  • Employee
  • 3 replies
  • September 11, 2024

If you are populating the user and location fields in a computers records than you could deploy a PLIST that contains all that info which you can leverage in your scripts. 

https://derflounder.wordpress.com/2023/02/25/providing-jamf-pro-computer-inventory-information-via-macos-configuration-profile/


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • 2717 replies
  • September 11, 2024

Technically yes, but functionally no. What problem are you trying to solve by doing this? Maybe with a better idea of the end goal we can provide other options or solutions.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings