Skip to content

User (Internal)

OctoSAM internal query

Internal queries are advanced queries for analysis of the inner workings of the OctoSAM application. These queries are geared towards administrators with an in-depth knowledge of OctoSAM.

All rows and columns from the User table.

Fields

Name Type Visible Description
ID object true OctoSAM internal ID of this entity
Organization ID object true OctoSAM internal ID of this Organization entity
Login Name string true User's login name
Domain Name string true NETBIOS Domain name
Display Name string true DisplayName attribute from the directory service
User Principal Name string true The principal name of the user (UPN)
Description string true Description attribute from the directory service
Dns Domain string true The user's DNS domain
Import Source ID object true Always 1 for current version of OctoSAM Inventory
Last Modification object true Date/Time this entity was last updated. In most cases, this is the time of the last import. In case of re-import of older scan files, LastModification can differ significantly from LastScan.
Custom Field1 string true Available for custom data, not used by OctoSAM Inventory
Custom Field2 string true Available for custom data, not used by OctoSAM Inventory
Notes string true Custom notes
Directory Path string true Path to this user or machine object in Active Directoy
Directory Container Path string true Path to the container of this user or machine object in Active Directory
Importer Instance string true Import instance name if multiple import modules write to the same database
Last Scan GUID object true Global Unique IDentifier of the last scan
Last Scan object true Date/Time this entity got scanned last
SID string true Security Identifier
Exclude From Software Inventory object true If true, software signatures reported by this user are ignored
Ignore New Signatures object true If true, new signatures reported by this user are ignored
Found In Directory object true True if the user was found in Active Directory at the last check (usually within 1 day)
Last Found In Directory object true Date/Time the user object was last found in Active Directory
Created object true Date/Time this entity was created
Created GUID object true Unique id of the .scan file that created this object
Last Machine ID object true Internal ID that references the Machine entity (Foreign Key)
Most Frequently Used Machine ID object true OctoSAM internal ID of the machine this user used most frequently
Custom Field3 string true Custom Data - not used by OctoSAM Inventory
Custom Field4 string true Custom Data - not used by OctoSAM Inventory
Synch Token ID string true Can be used for synchronization with another inventory or CMDB system. Holds the key to the identical item in the CMDB. Not used by OctoSAM Inventory.
Synch Last Synch object true Timestamp of last synchronization of this User with the partner CMDB. Not used by OctoSAM Inventory.
Last Modified By string true Windows User that last modified this User record through the OctoSAM UI
Res1 string true Reserved for internal use by future versions
Res2 string true Reserved for internal use by future versions
Directory Ext1 string true Site specific data, can optionally be used to load site-specific extended schema properties
Directory Ext2 string true Site specific data, can optionally be used to load site-specific extended schema properties
Directory Ext3 string true Site specific data, can optionally be used to load site-specific extended schema properties
Directory Ext4 string true Site specific data, can optionally be used to load site-specific extended schema properties
Printable Name string true Combination of attributes for consistent naming on screen or in reports
Directory Last Logon Timestamp object true LastLogonTimestamp attribute from Active Directory (updated on import and housekeeping). Resolution: 14 days.
Directory User Account Control object true UserAccountControl attribute from Active Directory (updated on import and housekeeping)
Directory Disabled object true True if the UserAccountControl attribute has the disable bit set
Directory Employee ID string true EmployeeID attribute from Active Directory (updated on import and housekeeping)
Directory Department Number string true DepartmentNumber from Active Directory
Directory Department string true Department from Active Directory
First Scan object true Date/Time this entity got scanned first
Directory Physical Delivery Office Name string true PhysicalDeliveryOfficeName attribute from Active Directory
Directory Home Directory string true HomeDirectory attribute from Active Directory
Directory Home Drive string true HomeDrive attribute from Active Directory
Directory Title string true Title (JobTitle) attribute from Active Directory
Active object true Reserved for future use
Directory Company string true Directory attribute from Active Directory
Directory Telephone Number string true TelephoneNumber attribute from Active Directory
Directory Mail string true Mail attribute from Active Directory
Directory Proxy Addresses string true ProxyAddresses attribute from Active Directory
Directory City string true City attribute from Active Directory
Directory Postal Code string true PostalCode attribute from Active Directory
Directory Street string true Street attribute from Active Directory
Directory Street Address string true StreetAddress attribute from Active Directory
Directory Extension Attribute1 string true ExtensionAttribute from Active Directory
Directory Extension Attribute2 string true ExtensionAttribute from Active Directory
Directory Extension Attribute3 string true ExtensionAttribute from Active Directory
Directory Extension Attribute4 string true ExtensionAttribute from Active Directory
Directory Extension Attribute5 string true ExtensionAttribute from Active Directory
Directory Extension Attribute6 string true ExtensionAttribute from Active Directory
Directory Extension Attribute7 string true ExtensionAttribute from Active Directory
Directory Extension Attribute8 string true ExtensionAttribute from Active Directory
Directory Extension Attribute9 string true ExtensionAttribute from Active Directory
Directory Extension Attribute10 string true ExtensionAttribute from Active Directory
Directory Extension Attribute11 string true ExtensionAttribute from Active Directory
Directory Extension Attribute12 string true ExtensionAttribute from Active Directory
Directory Extension Attribute13 string true ExtensionAttribute from Active Directory
Directory Extension Attribute14 string true ExtensionAttribute from Active Directory
Directory Extension Attribute15 string true ExtensionAttribute from Active Directory
Directory GUID object true ObjectGuid attribute from Active Directory
Directory Preferred Language string true User's preferred language from ActiveDirectory
Directory When Changed object true WhenChanged attribute from Active Directory (updated on import and housekeeping)
Directory When Created object true WhenCreated attribute from Active Directory
Suggest Software Uninstall object true If true, suggest this user in reports / queries for software uninstalls
Hint Software Package Usage Start Date object true Min consolidated usage date for this User
Hint Software Package Usage End Date object true Max consolidated usage date for this User
Hint In Groups object true True if the User is member in any Group
Hint Cloud Services object true True if the user has any assigned cloud services
Mac Full Name string true For users scanned on Mac, contains the users FullName as seen by system_profiler
Numeric User ID object true For users scanned on Unix/Linux/macOS contains the numeric user id
Guid object true A unique ID that can be used to link to this user object by external applications
Directory Ms DS Consistency Guid object true A unique ID used by Microsoft Entra ID to synchronize user information
Deleted In Directory object true True if this entity was deleted in Active Directory
Deleted In Directory First Detected object true Date/Time the DeletedInDirectory flag was set
Directory Account Expires object true AccountExpires attribute from Active Directory (updated on import and housekeeping)
Hint Has Access Log object true True if user has UAL data available
Analysis Extras string true Holds additional analysis data
Service Now Sys ID object true ServiceNow: sys_id of the replicated object
Service Now Last Export object true Date/Time of last export to ServiceNow
Service Now Last Import object true Date/Time of last import from ServiceNow
Hint Owns Software Items object true True if the user owns any software Items
Hint Has Relevant Software Items object true True if there are software items relevant for this user
Extra Data string true Extra data for this object (JSON)
Directory Type string true Directory type that this user was found in
Entra Id Tenant Id object true The Entra ID tenant ID associated with the user or machine entity
Entra Id On Premises Distinguished Name string true Distinguished name that was replicated from on-site to Entra ID
Entra Id On Premises Domain Name string true Domain name that was replicated from on-site to Entra ID
Entra Id On Premises Last Sync Date Time object true Date/Time this object was last synchronized from on-site AD
Entra Id On Premises SID string true SID of the on-prem user
Entra Id On Premises Sync Enabled object true If true, the user object gets synchronized from an on-premises AD
Entra Id On Premises User Principal Name string true UPN that was synchronized from on-prem AD
Entra Id User Type string true Entra ID user type
Entra Id Employee Leave Date Time object true Date/Time this employee left or will leave
Entra Id Employee Hire Date object true Date this employee was hired
Entra Id Deleted Date Time object true Date/Time this user object was deleted in Entra ID
Entra Id Given Name string true Given name of the user
Entra Id Surname string true Surname of the user
Entra Id Creation Type string true Entra ID creation type
Entra Id Cost Center string true Cost center from Entra ID
Entra Id Preferred Data Location string true Preferred data location from Entra ID
Entra Id Division string true Division from Entra ID
Object State ID object true Internal ID that references the ObjectState entity (Foreign Key)
Mapping Tag string true A field that can be used for custom organization mapping
Hint Has Auto Start object true True if the user has scanned Windows auto start information
Hint Has Mui Cache object true True if the user has scanned MUI Cache information
Cloud Provider Account ID object true Internal ID that references the CloudProviderAccount entity (Foreign Key)
Last Found In Entra Id object true Date/Time this user was last found in Entra ID
Entra Id Last Sign In Date Time object true Date/Time this user last signed in to Entra ID. This information may not be available depending on your Entra ID license.
Entra Id Last Sign In Request Id string true Request id of the last Entra ID sign in. This information may not be available depending on your Entra ID license.
Entra Id Last Non Interactive Sign In Date Time object true Date/Time of the last non-interactive sign in to Entra ID. This information may not be available depending on your Entra ID license.
Entra Id Last Non Interactive Sign In Request Id string true Request id of the last non-interactive sign in to Entra ID. This information may not be available depending on your Entra ID license.
Hint Has Cloud App Usage object true True if Microsoft 365 usage data is available in the OctoSAM inventory
Entra Id Id string true Microsoft Entra ID ID of this user
Last Scanner Tag string true Command-line tag that was specified on the last scan of this user
Hint Has Office Add Ins object true True if Microsoft Office add-ins have been detected on this machine
Scanned Distinguished Name string true Distinguished user name as seen locally from the scanner. This is scanned using GetUserNameEx() on Windows and may differ from the DirectoryPath attribute.
Entra Id Account Enabled object true Entra ID AccountEnabled
Entra Id Sync Diagnostics string true Diagnostics message from the OctoSAM Graph Entra ID importer
Entra Id Created Date Time object true Date/Time created in Entra ID
Cost Center ID object true Internal ID that references the CostCenter entity (Foreign Key)
Hint Has Browser Extensions object true True if the user has scanned browser extension information
Entra Id Last Successful Sign In Date Time object true Date/Time of the last successful sign in to Entra ID. This information may not be available depending on your Entra ID license. This encompasses both interactive and non-interactive sign ins.
Entra Id Last Successful Sign In Request Id string true Request id of the last successful sign in to Entra ID. This information may not be available depending on your Entra ID license. This encompasses both interactive and non-interactive sign ins.
Hint Has Environment Variables object true True if the user has scanned environment variables
Hint Has Documents object true True if the user has associated documents
Entra Id Other Mails string true A list of additional email addresses for the user from Entra ID
Entra Id Preferred Language string true Preferred language from Entra ID
Entra Id Proxy Addresses string true Additional email addresses for the user from Entra ID
Entra Id Is Resource Account object true A resource account is a specialized user identity created for shared spaces, devices, or applications. Resource accounts are not intended for interactive sign-in by users.
Entra Id External User State string true Tracks the acceptance status of an invited B2B collaboration guest
Entra Id External User State Changed object true Date/Time when the EntraIdExternalUserState was last changed
Hint Has Cloud Email Activity object true True if Microsoft 365 email activity data is available for this user
Entra Id Usage Location string true Usage location from Entra ID
Hint Has Web Usage object true True if the user has scanned web usage information
Current Date Time object false Date and time the query was run. For reference if you use and save query results.

Main entities referenced from this query

Query information

Property Value Description
Query Guid 9f12c7e4-5aba-48f2-8268-2f6bc9482c25 The internal id of the query. Must be unique
SupportsDesktop true If true, the query can be started from the OctoSAM Windows GUI
SupportsWeb false If true, the query can be started from the OctoSAM Web UI
LastUpdate 2026-11-19 22:17:53 Last change to this document
Build 1.12.7.92 OctoSAM build that last changed this document