{"id":25,"date":"2021-06-10T21:14:36","date_gmt":"2021-06-10T21:14:36","guid":{"rendered":"https:\/\/sfcompy.com\/blog\/?p=25"},"modified":"2021-11-21T09:42:12","modified_gmt":"2021-11-21T16:42:12","slug":"get-the-users-list-macos-cli","status":"publish","type":"post","link":"https:\/\/sfcompy.com\/blog\/get-the-users-list-macos-cli\/","title":{"rendered":"Get the User&#8217;s List &#8211; MacOS CLI"},"content":{"rendered":"\n<p>A simple way to get the MacOS users list, from security perspective this a simple way to recognize unauthorized  and suspicion user activities<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># List All Users\n\nbash&gt; dscl . -list \/Users\n\n# Exclude user\/s from users list\n\nbash&gt; dscl . -list \/Users | grep -vE \"_|root|nobody|daemon|Guest\" <\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A simple way to get the MacOS users list, from security perspective this a simple way to recognize unauthorized and suspicion user activities # List All Users bash&gt; dscl . -list \/Users # Exclude user\/s from users list bash&gt; dscl . -list \/Users | grep -vE &#8220;_|root|nobody|daemon|Guest&#8221;<\/p>\n","protected":false},"author":2,"featured_media":179,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[73,79,81,136,82,80,29],"_links":{"self":[{"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":0,"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/media\/179"}],"wp:attachment":[{"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sfcompy.com\/blog\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}