Skip to main content

Query Local Accounts

With the JumpCloud Agent installed, the Commands feature in the Admin Portal is a great tool for determining the existing local user accounts on your newly managed JumpCloud System before you bind users to the system. Learn more: Get Started: Commands.

warning

If you intend to take over existing local accounts, you must bind a user with a JumpCloud username that matches exactly with the username of the existing local account. Learn more: Take Over an Existing User Account with JumpCloud.

For organizations without a consistent naming convention, using the JumpCloud agent to query existing local accounts can be a great time saver, and ensure that account takeover is successful. Learn more: Naming Conventions for Users.

Windows PowerShell Command:

Get-LocalUser

Mac Command:

dscl . list /Users | grep -v '^_' | grep -v 'daemon' | grep -v 'nobody' | grep -v 'root'

Linux Command:

cut -d: -f1 /etc/passwd

Was this information helpful?