Posted on 08-02-2017 04:22 AM
Is there any way that I can do a dry run on a machine to see which policies it's in scope without running them?
Sort of like Powershells '-whatif' command or '-list'
Posted on 08-02-2017 04:34 AM
Not that I know of. You can see whats in scope in the JSS, but to run something like that on the client you'll have to write a custom script that reads via the API.
Posted on 08-02-2017 04:49 AM
The API doesn't provide a way to search groups by membership, only by name or ID.
Bah! Working through a large deployment and want to test that putting a test machine into different conditions picks up the required policies without having to reset it all the time.
Posted on 08-02-2017 05:53 AM
@RandomPenguins This might be useful for you: Cargo Ship (With a nod to @mpebley who pointed out the University of Utah GitHub repo in another thread)
Posted on 08-02-2017 07:28 AM
Oh I so hear on this one. See my 'getting crusty and old' Feature Request found here, which is almost word for word what you're requesting here.
I've been wishing for a long time for some way to know, from a command line argument, or looking at the computer records API, what will run on the next check-in trigger, or any other trigger for that matter, at least as far as it's aware of. It's maddening to me that we can view this exact information in the JSS UI under a computer record but have no way else to see it. Having to drill down into an individual Mac to see this isn't terribly useful, and time consuming to boot.
There are some useful things I could come up with if Jamf would give us some way to view this outside of the browser interface.
Posted on 01-18-2018 04:59 PM
This is indeed the situation I wrote Cargo Ship to help with.
Please take a look here (if you haven't already): https://github.com/univ-of-utah-marriott-library-apple/scl_jamf_tools
We've also created a channel specifically for our tools on the MacAdmin slack: #uofu-mariott-tools. Please join us there for support and discussion.