Query Exchange

 View Only
Expand all | Collapse all

macOS - Local Administrator Accounts

  • 1.  macOS - Local Administrator Accounts

    Broadcom Employee
    Posted Sep 01, 2021 08:16 AM

    Description: The query allows you to check macOS systems for local administrator accounts. The administrator on a Mac has full privileges to install programs, uninstall them, modify files, or compromise the system. The query helps to identify local administrator accounts to ensure IT hygiene and compliance in the enterprise.

    What The Data Shows: User ID, Username, User description

    SQL:

    SELECT u.uuid, u.username, u.description
    FROM users AS u
    INNER JOIN user_groups AS g ON g.gid=u.gid
    WHERE g.gid = 20
    GROUP BY username;

     


    #ITHygiene
    #Mac
    #Community
    #Compliance


  • 2.  RE: macOS - Local Administrator Accounts

    Broadcom Employee
    Posted Sep 02, 2021 05:15 PM

     thanks for contributing to the Query Exchange!