macadmins / jamf-pro-sdk-python

A client library for the Jamf Pro APIs and webhooks.
https://macadmins.github.io/jamf-pro-sdk-python/
MIT License
51 stars 10 forks source link

[Feature Request] Would be nice to pull all inventory based on email address. #35

Closed brendan-snyk closed 11 months ago

brendan-snyk commented 11 months ago

It would be nice to have a method to pull inventory based on email address. I suspect the adoption of this project would be much higher if that existed.

brendan-snyk commented 11 months ago

Nevermind, found it in the filters:

filter_expression=FilterField("userAndLocation.email").eq("test@test.com")

all_computers = client.pro_api.get_computer_inventory_v1(filter_expression=filter_expression)