Map device-to-user relationships by analyzing primary user assignments. This command reveals which users are primarily associated with specific devices, providing valuable intelligence for targeting and lateral movement planning.
# List all primary user relationshipsSharpSCCM get primary-users -sms SCCM01.corp.local -sc PS1# Count total relationshipsSharpSCCM get primary-users -c -sms SCCM01.corp.local -sc PS1
# Find devices for specific userSharpSCCM get primary-users -u "admin" -sms SCCM01.corp.local -sc PS1# Find primary user for specific deviceSharpSCCM get primary-users -d "WORKSTATION01" -sms SCCM01.corp.local -sc PS1
# Admin user relationshipsSharpSCCM get primary-users -w "UniqueUserName LIKE '%admin%'" -sms SCCM01.corp.local -sc PS1# Active relationships onlySharpSCCM get primary-users -w "IsActive = True" -sms SCCM01.corp.local -sc PS1