List All Administrator Accounts

Read the admin group membership with dscl to see exactly which users are administrators.

macOSaccountsdsclsecurityLow risk
Run `dscl . -read /Groups/admin GroupMembership` — every name listed after 'GroupMembership:' is an administrator.

01Command

Command
$ dscl . -read /Groups/admin GroupMembership

02What it does

Administrator rights come from membership in the local 'admin' group, and this command reads that group record directly — including accounts that never appear prominently in System Settings. An unexpected extra name here is a genuine security finding worth investigating. The standard set on a personal Mac is usually just 'root' and your own username.

03Risk

RiskLow risk

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-18 · Category: Security & Privacy

06Related solutions