{"id":74751,"date":"2023-06-05T13:09:13","date_gmt":"2023-06-05T17:09:13","guid":{"rendered":"https:\/\/jumpcloud.com\/?post_type=support&p=74751"},"modified":"2023-06-05T13:09:13","modified_gmt":"2023-06-05T17:09:13","slug":"query-local-accounts","status":"publish","type":"support","link":"https:\/\/jumpcloud.com\/support\/query-local-accounts","title":{"rendered":"Query Local Accounts"},"content":{"rendered":"\n

With the JumpCloud Agent installed, the Commands<\/strong> 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<\/a>.<\/p>\n\n\n\n

<\/p><\/div>

Warning:<\/strong> \n

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<\/a>.<\/p>\n <\/div><\/div><\/div><\/div>\n\n\n\n

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<\/a>.
 <\/p>\n\n\n\n

Windows PowerShell Command<\/strong>:<\/p>\n\n\n\n

\n

Get-LocalUser<\/p>\n<\/div><\/div>\n\n\n\n

Mac Command<\/strong>:<\/p>\n\n\n\n

\n

dscl . list \/Users | grep -v ‘^_’ | grep -v ‘daemon’ | grep -v ‘nobody’ | grep -v ‘root’<\/p>\n<\/div><\/div>\n\n\n\n

Linux Command<\/strong>: <\/p>\n\n\n\n

\n

cut -d: -f1 \/etc\/passwd<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"

With the JumpCloud Agent installed, the Commands feature in the Admin Portal is a great tool for determining the existing […]<\/p>\n","protected":false},"author":206,"featured_media":0,"template":"","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"","inline_featured_image":false,"footnotes":""},"support_category":[2895,2852],"support_tag":[],"coauthors":[2842],"acf":[],"yoast_head":"\nQuery Local Accounts - JumpCloud<\/title>\n<meta name=\"description\" content=\"Learn how to use commands to query local accounts before binding users to the system.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jumpcloud.com\/support\/query-local-accounts\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Query Local Accounts\" \/>\n<meta property=\"og:description\" content=\"Learn how to use commands to query local accounts before binding users to the system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jumpcloud.com\/support\/query-local-accounts\" \/>\n<meta property=\"og:site_name\" content=\"JumpCloud\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/07\/202405-MISC-JumpCloudHelpCenter-SiteDisplay-min-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"890\" \/>\n\t<meta property=\"og:image:height\" content=\"525\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n\t<meta name=\"twitter:label2\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data2\" content=\"pamkellman\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jumpcloud.com\/support\/query-local-accounts\",\"url\":\"https:\/\/jumpcloud.com\/support\/query-local-accounts\",\"name\":\"Query Local Accounts - JumpCloud\",\"isPartOf\":{\"@id\":\"https:\/\/jumpcloud.com\/#website\"},\"datePublished\":\"2023-06-05T17:09:13+00:00\",\"dateModified\":\"2023-06-05T17:09:13+00:00\",\"description\":\"Learn how to use commands to query local accounts before binding users to the system.\",\"breadcrumb\":{\"@id\":\"https:\/\/jumpcloud.com\/support\/query-local-accounts#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jumpcloud.com\/support\/query-local-accounts\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jumpcloud.com\/support\/query-local-accounts#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jumpcloud.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Support\",\"item\":\"https:\/\/jumpcloud.com\/support\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Query Local Accounts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jumpcloud.com\/#website\",\"url\":\"https:\/\/jumpcloud.com\/\",\"name\":\"JumpCloud\",\"description\":\"Daily insights on directory services, IAM, LDAP, identity security, SSO, system management (Mac, Windows, Linux), networking, and the cloud.\",\"publisher\":{\"@id\":\"https:\/\/jumpcloud.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jumpcloud.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jumpcloud.com\/#organization\",\"name\":\"JumpCloud\",\"url\":\"https:\/\/jumpcloud.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png\",\"contentUrl\":\"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png\",\"width\":598,\"height\":101,\"caption\":\"JumpCloud\"},\"image\":{\"@id\":\"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Query Local Accounts - JumpCloud","description":"Learn how to use commands to query local accounts before binding users to the system.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jumpcloud.com\/support\/query-local-accounts","og_locale":"en_US","og_type":"article","og_title":"Query Local Accounts","og_description":"Learn how to use commands to query local accounts before binding users to the system.","og_url":"https:\/\/jumpcloud.com\/support\/query-local-accounts","og_site_name":"JumpCloud","og_image":[{"width":890,"height":525,"url":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2024\/07\/202405-MISC-JumpCloudHelpCenter-SiteDisplay-min-2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute","Written by":"pamkellman"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jumpcloud.com\/support\/query-local-accounts","url":"https:\/\/jumpcloud.com\/support\/query-local-accounts","name":"Query Local Accounts - JumpCloud","isPartOf":{"@id":"https:\/\/jumpcloud.com\/#website"},"datePublished":"2023-06-05T17:09:13+00:00","dateModified":"2023-06-05T17:09:13+00:00","description":"Learn how to use commands to query local accounts before binding users to the system.","breadcrumb":{"@id":"https:\/\/jumpcloud.com\/support\/query-local-accounts#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jumpcloud.com\/support\/query-local-accounts"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jumpcloud.com\/support\/query-local-accounts#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jumpcloud.com\/"},{"@type":"ListItem","position":2,"name":"Support","item":"https:\/\/jumpcloud.com\/support"},{"@type":"ListItem","position":3,"name":"Query Local Accounts"}]},{"@type":"WebSite","@id":"https:\/\/jumpcloud.com\/#website","url":"https:\/\/jumpcloud.com\/","name":"JumpCloud","description":"Daily insights on directory services, IAM, LDAP, identity security, SSO, system management (Mac, Windows, Linux), networking, and the cloud.","publisher":{"@id":"https:\/\/jumpcloud.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jumpcloud.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jumpcloud.com\/#organization","name":"JumpCloud","url":"https:\/\/jumpcloud.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/","url":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png","contentUrl":"https:\/\/jumpcloud.com\/wp-content\/uploads\/2021\/01\/jc-logo-brand-2021.png","width":598,"height":101,"caption":"JumpCloud"},"image":{"@id":"https:\/\/jumpcloud.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support\/74751"}],"collection":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/types\/support"}],"author":[{"embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/users\/206"}],"version-history":[{"count":2,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support\/74751\/revisions"}],"predecessor-version":[{"id":89078,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support\/74751\/revisions\/89078"}],"wp:attachment":[{"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/media?parent=74751"}],"wp:term":[{"taxonomy":"support_category","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support_category?post=74751"},{"taxonomy":"support_tag","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/support_tag?post=74751"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/jumpcloud.com\/wp-json\/wp\/v2\/coauthors?post=74751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}