The fastest way to find your admin username
Open System Settings, click General in the left sidebar, then select About. Look for "Computer Name" — that is your Mac's name, not your username. Instead, go back to System Settings, click General again, then Users & Groups (or System Settings > General > Users & Groups depending on your macOS version). The account with "Admin" listed under its name is your administrator account. Click that account to see its full username in the window that opens.
If you are already logged in to an administrator account and just need to confirm the username, the fastest route is the Terminal app. Press Command + Space, type Terminal, and press Enter. Type whoami and press Enter — the name that appears is your current username. If you need to know whether this account has administrator privileges, type id and press Enter. Look for "groups=" in the output; if you see a number like 80 or 501 followed by admin, you have admin rights.
On newer Macs running macOS Ventura or later, System Settings replaced System Preferences. The path is System Settings > General > Users & Groups. On older Macs, it is System Preferences > Users & Groups. Both show the same information.
Key Takeaways
- Your administrator username appears next to "Admin" in the Users & Groups section of System Settings or System Preferences.
- The Terminal command whoami when ready shows the username of whichever account you are currently using.
- You can have multiple administrator accounts on one Mac, so check which one you actually need.
- The "Computer Name" in About is your Mac's network name, not your username — they are different things.
Finding the admin account when you are logged into a different user
If you are using a standard (non-admin) account and need to know the administrator username without logging out, System Settings will show you the answer without requiring a password. Go to System Settings > General > Users & Groups and look at the list on the left. Any account with "Admin" written underneath its name is an administrator account. The text above "Admin" is the username you are looking for.
You cannot change settings in Users & Groups from a standard account, but you can read the usernames and see which accounts have admin rights. If you need to perform an action that requires administrator credentials, macOS will prompt you to enter an admin username and password — you now know which usernames to try.
Using Terminal to list all administrator accounts
Terminal gives you a complete list of every account on your Mac and which ones have admin rights. Press Command + Space, type Terminal, and press Enter. Type dscl . list /Users | grep -v '^_' and press Enter. This shows every user account except system accounts (which start with an underscore).
To see which of these accounts are administrators, type dscl . read /Users/username UserShell, replacing "username" with an actual account name from the list above. If the output shows /bin/bash or /bin/zsh, that is a regular user account. For a faster check of admin status, type dseditgroup -o read admin and press Enter — this lists every account in the admin group. Any name that appears here is an administrator account.
What to do if you forgot the administrator password
Knowing the administrator username is different from knowing the administrator password. If you know the username but cannot log in, you have a few options. On newer Macs with Apple Silicon (M1, M2, M3 chips), you can use your Apple ID to reset the password if you set that up when you created the account. Restart your Mac, and when the login screen appears, click the question mark next to the password field. Follow the prompts to reset using your Apple ID.
On Intel Macs or if you did not set up Apple ID recovery, you can use Recovery Mode. Restart your Mac and hold Command + R until the Apple logo appears. Go to Utilities > Terminal, type resetpassword, and press Enter. This opens the Reset Password utility, where you can choose the administrator account and set a new password. You will need physical access to the Mac to use this method.
Checking if your current account is an administrator
If you are unsure whether the account you are using right now has administrator privileges, Terminal is the clearest way to check. Open Terminal (Command + Space, type Terminal, press Enter) and type id, then press Enter. Look at the output for the word "admin" — if you see it, your account is an administrator. The number next to admin (usually 80) is the admin group ID and confirms your status.
You can also check by trying to make a change that requires admin rights. Go to System Settings > General > Users & Groups. If you can click the lock icon in the bottom left and unlock it without entering a password, you are an administrator. If a password prompt appears, you are using a standard account.
Understanding the difference between your username and display name
Your Mac has two names for each account: the username (also called the short name) and the display name. The username is what appears in Terminal, what you use to log in from the command line, and what determines your home folder path (/Users/username). The display name is what appears in the Users & Groups list and is often longer or more formal — for example, the username might be "jsmith" while the display name is "John Smith".
When you need to enter administrator credentials in a dialog box, use the username, not the display name. System Settings shows both: click the administrator account in Users & Groups, and you will see the display name at the top of the window. The username appears in smaller text or in the "Account name" field if you click the Advanced Options button.
Frequently Asked Questions
Can I see all usernames on my Mac without logging in?
No. The login screen shows display names, not usernames, and you cannot access the full list without logging in to an account. Once you are logged in, System Settings or Terminal will show you all usernames and which ones are administrators.
Is the administrator username the same as the computer name?
No. The computer name is your Mac's network name (what appears in Finder and on your network). The administrator username is the account name of a user with admin rights. You can see the computer name in System Settings > General > About, and the administrator username in System Settings > General > Users & Groups.
What if I see multiple admin accounts?
It is normal to have more than one administrator account on a Mac. Each one is a separate user with its own home folder, files, and settings. Any of them can perform administrative tasks. If you need to know which one to use, try the one you remember creating first, or check which one was created most recently in Users & Groups.
Does finding my username in Terminal require admin rights?
No. The whoami command works from any account and shows the username of the account you are currently using. You do not need administrator privileges to run it.
Can I change my administrator username?
You cannot change the username directly in System Settings. To change it, you need to create a new administrator account with the name you want, transfer your files to it, and then delete the old account. This process requires administrator privileges and is usually not necessary unless you are trying to match a username across multiple Macs.