Where to find your admin username on a Mac
Your admin username is the account name you use to log in to your Mac when you first turn it on. If you are the person who set up the computer, this is almost certainly your username. The fastest way to confirm it is to look at the login screen: restart your Mac, and the username that appears in the account list is an admin account.
If you are already logged in, you can find your username without restarting. Open System Settings (or System Preferences on older Macs), go to General, then About. Your username appears next to "User Name" — though this field sometimes shows your full name instead of your login name. A more reliable method is to open Terminal (search for it in Spotlight by pressing Command-Space), type whoami and press Enter. The text that appears is your exact login username.
If multiple people use the Mac, you may see several accounts on the login screen. Admin accounts usually have a gear icon or are labeled "Administrator" in System Settings under General > Users & Groups (on older Macs) or System Settings > General > Login Items (on newer ones). The account you used to set up the Mac is always an admin account.
Key Takeaways
- Your admin username is the account name you type at the Mac login screen, and you can confirm it by restarting and looking at the account list.
- If you are already logged in, opening Terminal and typing whoami shows your exact login username when ready.
- The account used to set up the Mac is always an admin account, even if you later created other accounts.
- If you cannot remember your password but know your username, you can reset it through Recovery Mode without losing your files.
Checking admin status in System Settings
Not every account on a Mac is an admin account. Standard accounts can use most programs but cannot install software, change system settings, or create new accounts. To see which accounts have admin rights, open System Settings and navigate to General > Users & Groups (on macOS Monterey and earlier) or System Settings > General > Login Items (on macOS Ventura and later).
Click the lock icon in the bottom left to unlock the settings — you will need to enter an admin password. Then look at each account listed. If it shows "Admin" next to the account name, that account can make system changes. If it shows "Standard," that account cannot. You can change an account from Standard to Admin (or vice versa) from this same screen, but only if you are logged in as an admin.
What to do if you forgot your admin password
If you know your username but cannot remember the password, you can reset it without losing your files. Restart your Mac and hold Command-R to enter Recovery Mode. When the utilities window appears, click Utilities in the menu bar, then select Terminal.
Type resetpassword and press Enter. A password reset window will open. Select your username from the dropdown, enter a new password twice, and click Reset Password. Your Mac will restart, and you can log in with your new password. This method works only if you can physically access the Mac — there is no way to reset an admin password remotely.
If you do not remember your username at all, you can still see all account names on the login screen by restarting the Mac. Write down the exact spelling of the admin account name, then use the password reset method above.
Finding admin username on a shared Mac
If someone else set up the Mac and you need to know the admin username, ask them directly — they will know it when ready. If that is not possible, you can see all account names by restarting the Mac and looking at the login screen. Any account that was used to set up the Mac is an admin account.
If you need to perform a task that requires admin rights but do not have an admin account, the person with an admin account will need to enter their password when prompted. You cannot bypass this requirement, and there is no way around it without the admin password.
Using Terminal to confirm admin privileges
Terminal is the fastest way to check whether your current account has admin rights. Open Terminal (search Spotlight for it), type id and press Enter. Look at the output for a number after "gid=" — if that number is 80, your account is an admin. If it is a different number, your account is standard.
You can also type sudo -l and press Enter. If your account is an admin, Terminal will ask for your password and then show a list of commands you can run with admin rights. If your account is standard, it will say "user is not in the sudoers file," which means you do not have admin rights.
Differences between admin and standard accounts
An admin account can install programs, change system settings, create or delete other accounts, and reset passwords. A standard account can run most programs but cannot make system-wide changes. When you try to do something that requires admin rights on a standard account, macOS will ask you to enter an admin password.
If you are the only person using the Mac, your account should be an admin account. If multiple people share the Mac, you might create standard accounts for others so they cannot accidentally change settings or install unwanted programs. You can always change an account from standard to admin later if needed — just open System Settings and unlock Users & Groups with an admin password.
Frequently Asked Questions
How do I know if I am logged into an admin account right now?
Open Terminal, type id and press Enter. If the number after "gid=" is 80, you are an admin. You can also try opening System Settings and looking for a lock icon — if you can unlock it with your own password, you are an admin.
Can I have more than one admin account on my Mac?
Yes. You can create multiple admin accounts, and each one can make system changes and reset passwords. It is common to have one main admin account and one backup admin account in case you forget the main password.
What if the login screen does not show any account names?
Your Mac may be set to hide account names for security. Click the "?" button or look for a "Other" option at the bottom of the login screen. You can then type your username and password manually. The username you type is your login username.
Can I change my username after I set up my Mac?
You can change your full name (the display name) easily in System Settings, but changing your actual login username is more complex and requires Terminal commands. For most people, changing the display name is enough. If you need to change your login username, search Apple Support for "change your macOS user account name" for step-by-step instructions.
Is my admin username the same as my Apple ID?
No. Your admin username is the account name on your Mac (what you type at login). Your Apple ID is a separate account you use for the App Store, iCloud, and other Apple services. They are not connected, though you can use your Apple ID to help reset your Mac password if you forget it.