The fastest way to see your Mac username
Your Mac username appears in the top-right corner of your screen in the menu bar. Click the Apple menu in the top-left, then select "System Settings" (or "System Preferences" on older Macs). In the left sidebar, look for "General" or click your account picture. Your username is listed there as "Full Name" or "Account Name".
If you need the technical username your Mac uses behind the scenes — which is different from your display name — open the Terminal app (find it in Applications > Utilities). Type whoami and press Enter. The text that appears is your system username.
Key Takeaways
- Your display name shows in System Settings under your account, and it is what other people see when you share files or use your Mac on a network.
- Your system username is what Terminal shows when you type whoami, and it is what you use to log in if you are not using Face ID or Touch ID.
- The two usernames are often different — your display name might be "Sarah Chen" while your system username is "schen" or "sarah.chen".
- If you have forgotten your login password, knowing your username is the first step toward resetting it through Apple ID or Recovery Mode.
Finding your username in System Settings
Open System Settings by clicking the Apple menu and selecting "System Settings". On older Macs running Monterey or earlier, this is called "System Preferences". In the sidebar on the left, click "General", then look for a section labeled "About" or your account picture at the top.
Your full name appears under "Full Name". Below that, you will see "Account Name" — this is your system username, the one you type when logging in. Write down both if you need them for different purposes.
If you do not see an "Account Name" field, your Mac may be set up with only a display name. In that case, use Terminal to find your system username instead.
Using Terminal to find your system username
Terminal is the command-line tool built into every Mac. Open it by pressing Command + Space, typing "Terminal", and pressing Enter. A black or white window will open.
Type the word whoami (all lowercase, no spaces) and press Enter. Your system username will appear on the next line. This is the name your Mac uses internally for file permissions, network access, and login.
You can also type id and press Enter to see more detailed information, including your user ID number and the groups you belong to. Close Terminal by pressing Command + Q.
Why your display name and system username are different
When you set up your Mac, you chose a display name — the friendly name that appears in messages, shared folders, and on your desktop. Behind the scenes, macOS created a system username based on that name, usually by removing spaces and special characters.
For example, if your display name is "James Rodriguez", your system username might be "jamesrodriguez" or "james.rodriguez". The system username cannot have spaces or most special characters, so macOS simplifies it automatically.
Both names are yours, but they serve different purposes. Your display name is what people see. Your system username is what you type to log in (if you are not using Face ID or Touch ID) and what appears in file paths and network settings.
Finding your username if you cannot log in
If you are locked out of your Mac and need to know your username to reset your password, restart your Mac and hold Command + R while it starts up. This opens Recovery Mode. Click "Utilities" in the menu bar, then select "Terminal".
Type dscl . list /Users | grep -v '^_' and press Enter. This shows all user accounts on your Mac. Your username will be in the list. You can then use this username to reset your password through Apple ID or create a new administrator account.
If you remember your Apple ID but not your Mac password, you can also restart and select "Forgot Password?" on the login screen. Apple ID can reset your password without needing your username first.
Checking multiple user accounts on your Mac
If your Mac has more than one user account, each person has their own username. To see all accounts on your Mac, open System Settings, click "General", then look for "Users & Groups" or "Accounts" (the exact name depends on your macOS version).
Click the lock icon at the bottom to unlock this section with your password. You will see a list of all user accounts. Click each one to see its full name and account name. Administrator accounts have a gear icon next to them.
If you need to know another person's username and you do not have their password, you can still see the account name in this list without logging in as them.
Frequently Asked Questions
Is my username the same as my Apple ID?
No. Your Apple ID is your email address or phone number used for iCloud, the App Store, and Apple services. Your Mac username is the account name on your computer. They are separate. You can have one Apple ID and multiple Mac usernames on different computers.
Can I change my username after I set up my Mac?
You can change your display name easily in System Settings. Changing your system username is more complex and requires using Terminal or creating a new account. Most people change only the display name and leave the system username alone.
What if Terminal shows a username I do not recognize?
Usernames starting with an underscore (like _spotlight or _mysql) are system accounts, not human users. Ignore those. Look for usernames without underscores — those are the real accounts on your Mac.
Do I need my username to reset my Mac password?
Not always. If you remember your Apple ID, you can reset your password from the login screen without typing your username. If you do not remember your Apple ID, you will need your username to use Recovery Mode to reset it.
Why does my Mac ask for a username and password sometimes but not others?
If you have Face ID or Touch ID set up, your Mac logs you in automatically without asking for your username. If you disable those features or restart your Mac, you will see the login screen and need to type your username and password.