10-28-2022 12:45 PM - last edited on 04-01-2024 02:30 PM by Mercedes_O
Hello everyone!
I was wondering if there are any additional configurations for Apple macOS scanning to include assigned users for every MacBook machine and if possible (but not mandatory) to have a warranty status similar to Windows machines.
I can successfully see all the MacBooks in our organization with agentless scanning but no assigned user is available, therefore it's very hard to distinguish which machine belongs to who in LS.
Cheers!
Nadim
10-28-2022 06:24 PM
do you use a management platform such as JAMF?
10-28-2022 08:05 PM
Yes, we use Mosyle for Apple MDM.
Cheers!
10-28-2022 09:20 PM - edited 10-28-2022 09:27 PM
Well, I'm not the expert on scanning iOS but I am pretty sure that Lansweeper gets the user info for that stuff only if the devices are enrolled in InTune for management.
**This is not supported by support, so insert the 'you're on your own, don't screw up your database and don't say we didn't warn you' warning here - which is what they generally tell me***
What I do is make an API call to the MDM and pull information from it that Lansweeper doesn't get out-of-the-box - particularly user assignments. Now - Lansweeper has custom fields, but only 20 of them. Seems like a lot, until you do a lot of stuff like what I'm suggesting. So, if I don't want to sacrifice one of those precious 20 fields, I will sneak the info in somewhere else on the asset page - for example, the 'description' field.
Here's an example pulled from JAMF - but I have the group it's in, versus the user - but you get the point.
That's the easiest way to do it, but you won't get to drill down to the active directory user like you would be able to if it were in InTune - without some heavy duty SQL writing (based on AD Object GUID probably) which is beyond my skill and I'd have to buy the DBA a drink or something... but you could at least have a report and add that column to see the user
11-02-2022 12:49 PM
Hey Rom!
No worries, my skills are the same and I wish buying a drink for the DBA can solve it, hehe...
I am actually trying to figure out the API configuration as we speak, amazing recommendation! thanks!
I don't really need these much fields, as you mentioned, I only need to show the assigned user for the machine then to login to Mosyle and do couple of clicks to search for the machine SN and check the assigned user.
Checking if Mosyle and API are friends already...
Thanks Rom! will update you!
Nadim.
11-04-2022 04:54 PM
A lot of API's have swagger files to import into Postman (a free app to test API stuff), which have the commands and stuff already preset. If you figure that part out (you can youtube how to use postman), you can change the output of Postman to CURL, and batch the CURL commands to run and save the results to a JSON file. SQL can open, validate, and read the JSON file and perform updates to asset records, so you could make a scheduled task to run the CURL, and a stored procedure in SQL to import the JSON and update the records. Totally not supported, but, that's what I do for a poor-man's ETL (i.e. no SSIS needed, etc)
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now