Posted on 12-21-2021 09:02 AM
In an application that I am building for our organization, I am using JAMF pro api's for getting some mobile device data.
The data that we need is :
Last date and time the user logged into the mobile device or the last active date and time of the device.
We intend to use this data to see what are the stale devices and inactive devices for the last 30 days .
Is there a swagger api that we could use to get this information?
we are using the following api to get the list of mobile devices that are with our organization.
https://casper.xxxxxx.xxxxxx:8443/JSSResource/mobiledevices
I have gone through various screens aon UI and tried to analyze the back ground data but could not find any. Any help is reatly aprreciated.
Thanks
Posted on 12-22-2021 09:20 AM
If you're wanting this information from an iOS or iPadOS device then you're going to have to look elsewhere. iOS and iPadOS aren't traditional multi user operating systems as such you won't get login events or the like from the device and in-turn data in Jamf Pro to act on or grab from the API.
You'll have better luck scraping that data from say a timed splash login for a wireless network or maybe an Azure, Okta, etc. login for an application on the device or when they're used with Jamf Setup and Reset, etc.
As far as active dates and times you can scrape the last inventory date from a mobile device but that's not something I'd use to determine an "active" or in use device.
The closest you'll get to something like this is if they're setup in Shared iPad Mode and you have the sessions set to time out.
Posted on 12-29-2021 11:04 AM
Hi Steve,
Thank you for your prompt reply. I have the following follow up questions:
1) Is there a way to determine if the mobile device is actively used or not just using JAMF PRO?
2) Whats the difference between the Last update date that we are getting from the stale devices report as shown in the screen shot and the last update date for a device.
the report is downloaded from the following screen:
The following is the screen shot of the Excel report :
They are not same for the same devices( date time stamp inconsistency is found)
Any API that contains the last update date that we are getting from the report (excel data) will be helpful.
Posted on 01-03-2022 06:15 AM
Someone else with more API experience will have to chime in with other ideas, but you also need to define in your terms actively used and stale for us to better understand what you're after.