Where to find your admin account on a Mac

Your admin username is the account you used to set up your Mac or the one you log into now if it has administrator privileges. To find it, click the Apple menu in the top-left corner, select System Settings (or System Preferences on older Macs), then go to General and look for Users & Groups or Users. The account with a gear icon or labeled "Admin" next to its name is your administrator account.

If you are already logged in as the admin, your username appears in the top-right corner of the menu bar when you click the Apple menu. You can also open Terminal (search for it in Spotlight by pressing Command+Space) and type whoami to see the current logged-in username when ready.

On newer Macs running macOS Ventura or later, the Users & Groups section moved. Go to System Settings > General > Users & Groups, and you will see all accounts listed with their type displayed next to each name.

Key Takeaways

  • Your admin username appears in System Settings under Users & Groups, marked with an Admin label or gear icon.
  • If you are logged in as admin, typing whoami in Terminal shows your username when ready.
  • Mac passwords are not stored anywhere you can view them; you can only reset them through System Settings or Recovery Mode.
  • If you forgot your admin password, use Apple ID recovery or macOS Recovery Mode to reset it without losing your files.
  • A second admin account lets you regain access if your primary admin password is lost.

Why you cannot see your password stored on the Mac

macOS does not store passwords in a place where you can look them up and read them back. Instead, it stores an encrypted version called a hash. When you type your password at login, the Mac converts what you typed into a hash and compares it to the stored one. If they match, you log in. This design means even Apple cannot tell you what your password is.

This is intentional security: if someone gained access to your Mac's files, they would not find readable passwords sitting there. The tradeoff is that you cannot retrieve a forgotten password—you can only reset it.

How to reset a forgotten admin password

If you remember your Apple ID and password, the fastest route is to go to System Settings > Users & Groups, select your account, and click Reset Password. You will be asked to sign in with your Apple ID, and then you can create a new Mac password.

If you do not have access to your Apple ID or that method does not work, restart your Mac and hold Command+R as it boots to enter Recovery Mode. Once the macOS Utilities window appears, click Utilities in the menu bar, then Terminal. Type resetpassword and press Enter. A password reset window will open where you can select your account and set a new password without needing your Apple ID.

Recovery Mode works on any Mac, but you need physical access to the device. If your Mac is encrypted with FileVault, you will need your FileVault recovery key or Apple ID to proceed.

Creating a second admin account for backup access

If you are the only admin on your Mac and you forget your password, you will need Recovery Mode or your Apple ID to regain access. A simpler safeguard is to create a second admin account now, while you still have access. If you ever get locked out of your main account, you can log in as the second admin and reset the primary account's password.

To create a second admin account, go to System Settings > Users & Groups, click the lock icon to unlock it (you will need your current password), then click the plus sign to add a new user. Choose Administrator as the account type, give it a name and password you will remember, and click Create User. Store this password somewhere safe, separate from your main password.

You do not need to use this account day-to-day. It exists only as a backup way to get back into your Mac if your primary admin password becomes inaccessible.

Finding your username in Terminal for troubleshooting

If you need to reference your admin username while troubleshooting or installing software, Terminal gives you several ways to check it. Open Terminal and type whoami to see the currently logged-in username. Type id to see your username, user ID, group ID, and group memberships. Type dscl . list /Users to see all user accounts on the Mac, or dscl . list /Users | grep admin to show only admin accounts.

These commands are read-only and do not change anything on your Mac. They are useful when you need to confirm your account name for software installation, file permissions, or when following troubleshooting steps that ask you to verify your username.

What to do if you see multiple admin accounts

Some Macs have more than one admin account, especially if multiple people set up the computer or if a second admin was added for backup access. You can see all of them in System Settings > Users & Groups. Each one with an Admin label can install software, change system settings, and reset other account passwords.

If you do not recognize an admin account on your Mac, it may have been created by a previous owner, a family member, or an IT administrator if the Mac is work-owned. If you are certain it should not be there, you can delete it by selecting it and clicking the minus sign—but you will need admin privileges to do so. If you cannot delete it, another admin account is protecting it, and you would need to contact whoever created it or your IT support.

Frequently Asked Questions

Can I see my password if I write it down in Notes or another app?

No. Your Mac login password is separate from any password you manually type and save elsewhere. The password you use to log in is encrypted and stored only in the system's authentication database. If you write your password in Notes or a document, that is a copy you created—not your actual Mac password. Never store passwords in plain text files.

What if I have a Mac at work and forgot the admin password?

Contact your IT department or help desk. Work Macs are often managed by Mobile Device Management (MDM) software that lets IT reset passwords remotely. Do not try Recovery Mode on a work Mac without permission, as it may trigger security alerts or violate company policy.

Does resetting my password in Recovery Mode erase my files?

No. Resetting your password in Recovery Mode changes only your login password. Your files, applications, and settings remain untouched. The process takes a few minutes and does not require reinstalling macOS.

Can I change my admin password without knowing the old one?

Yes, if you have access to your Apple ID or another admin account. Use Apple ID recovery in System Settings, or log in as a different admin and reset the password from Users & Groups. If you have neither, Recovery Mode is your option.

What is the difference between my Mac password and my Apple ID password?

Your Mac password logs you into your computer. Your Apple ID password logs you into Apple services like iCloud, the App Store, and iMessage. They are separate and do not have to match. You can change one without affecting the other, though using the same password makes recovery easier if you forget it.