In versions of FlexNet Manager Suite before 2021 R1.4, Apple devices may show the user that is currently logged on rather than the last logged-on user in the Last logged on field of the Ownership tab (Inventory Device Properties > Ownership tab). If no user was logged onto the Apple device when it was inventoried, you'll see the user listed as "System."
Read more about the Ownership tab.
Find the last logged-on user for Apple devices
If you are experiencing this issue, you can follow the instructions below to find the last logged-on user.
- Run the following query to determine the name of an Apple device that isn't showing when it was last logged on:
SELECT
ho.ComputerID AS ExternalID,
c.computercn,
LEFT(hv.Value, 250) AS LastLoggedOnUser
FROM dbo.HardwareObject AS ho
JOIN dbo.HardwareClass AS hc ON hc.HardwareClassID = ho.HardwareClassID
JOIN dbo.HardwareClass AS sc ON sc.HardwareClassID = hc.SuperClassID
JOIN dbo.HardwareValue AS hv ON hv.HardwareObjectID = ho.HardwareObjectID
JOIN dbo.HardwareProperty AS hp ON hp.HardwarePropertyID = hv.HardwarePropertyID
Join dbo.computer As C ON c.ComputerID = ho.ComputerID
WHERE sc.Class = 'CIM_UnitaryComputerSystem'
AND hp.Property = 'UserName'
AND hv.Value != 'SYSTEM'
and c.ComputerCN = <Name of Device>
This query will return something like the image below:
- If the previous query yields no results, you can alter it to remove AND hv.Value != 'SYSTEM'. This query will show if the user is displaying as "system" due to not being logged on when inventory was run last.
SELECT
ho.ComputerID AS ExternalID,
c.computercn,
LEFT(hv.Value, 250) AS LastLoggedOnUser
FROM dbo.HardwareObject AS ho
JOIN dbo.HardwareClass AS hc ON hc.HardwareClassID = ho.HardwareClassID
JOIN dbo.HardwareClass AS sc ON sc.HardwareClassID = hc.SuperClassID
JOIN dbo.HardwareValue AS hv ON hv.HardwareObjectID = ho.HardwareObjectID
JOIN dbo.HardwareProperty AS hp ON hp.HardwarePropertyID = hv.HardwarePropertyID
Join dbo.computer As C ON c.ComputerID = ho.ComputerID
WHERE sc.Class = 'CIM_UnitaryComputerSystem'
AND hp.Property = 'UserName'
and c.ComputerCN = <Name of Device>
- If nothing is returned from these queries, you will need access to the NDI File. In the NDI file, look at the top block called MGS_ComputerSystem. You should see the username listed here.
Related Articles
"Last logged on" user is shown as "None" on a Inventory Device Properties page 12Number of Views Getting Currently Logged-On User Name 5Number of Views Logs are not showing for some tasks on the System Tasks page 6Number of Views Last Inventory Date on inventory devices imported from JAMF show date the device was initially enrolled in JAMF, not the d… 7Number of Views Snow License Manager users display old "Last Used" dates for applications while application-level data is empty 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago