TechBuzzPro

How to Find a User's SID in Windows

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can find a user account's Security Identifier (SID) in Windows in under a minute using built-in tools: open Command Prompt and run whoami /user for your own SID, or run wmic useraccount get name,sid to list every local account and its SID. If you prefer a graphical view, type lusrmgr.msc in the Run dialog, open a user's Properties, and look at the SID field. A SID is the unique string Windows uses internally to identify an account, and it stays the same even if the username is renamed.

Knowing the SID matters when you are troubleshooting permissions, mapping a folder's access control list, or matching a registry key under HKEY_USERS to a person. The steps below use only tools that ship with Windows, so nothing needs to be installed first. Menu labels and the exact output format can differ slightly between Windows versions, editions, and regions, but the commands are the same across Windows 10 and Windows 11.

What You'll Need

  • A Windows PC you can sign in to with an account that has standard user rights (administrator rights are only needed if you want to inspect other accounts through some tools).
  • Access to Command Prompt, PowerShell, or the Run dialog — all are built into Windows.
  • The exact username of the account you want to check, if it is not your own.

Step-by-Step

  1. Find your own SID with Command Prompt. Press the Windows key, type cmd, and open Command Prompt. Type whoami /user and press Enter. The output shows your username and a line beginning with S-1-5-21- — that long string is your SID. This is the fastest method and works without administrator rights.
  2. List every local account and its SID. In the same Command Prompt window, type wmic useraccount get name,sid and press Enter. You will see a table with one row per local account, including built-in accounts such as Administrator and Guest. If the command reports that WMIC is not recognized on your build, use the PowerShell alternative in the next step.
  3. Use PowerShell as an alternative. Open PowerShell (search for it in the Start menu) and run Get-LocalUser | Select-Object Name, SID. This lists local accounts with their SIDs in a clean table. For a single account, run Get-LocalUser -Name "YourUserName" | Select-Object Name, SID, replacing the name with the account you want.
  4. Look up a SID from a username with a one-line command. If you only have a username and want its SID, open Command Prompt and run wmic useraccount where name="YourUserName" get sid. Replace YourUserName with the exact account name. The SID appears on its own line below the header.
  5. Use the graphical Local Users and Groups tool. Press Windows+R, type lusrmgr.msc, and press Enter. Click Users in the left pane, right-click the account you want, and choose Properties. The SID is shown near the bottom of the General tab. This tool is available in Windows Pro and Enterprise editions; on Windows Home it may not open, so use the command-line methods instead.
  6. Check a domain account (if applicable). On a PC joined to a domain, run whoami /user while signed in as that user, or ask your IT administrator to look up the objectSID attribute in Active Directory Users and Computers. Local tools like lusrmgr.msc only show local accounts, not domain accounts.
  7. Copy and save the SID. Select the SID text in the console window, right-click to copy it, and paste it into Notepad or your notes. SIDs are long and easy to mistype, so copying rather than retyping avoids errors when you paste them into permission dialogs or registry paths.

Common Mistakes

  • Confusing the username with the SID. The SID always starts with S-1-5-21- for local accounts and is a long string of numbers; the username is the short display name. If you paste a username where a SID is expected, the permission or registry step will fail.
  • Looking in the wrong tool for domain accounts. lusrmgr.msc and Get-LocalUser only list local accounts. A domain user's SID must be retrieved from Active Directory or by running whoami /user while signed in as that user.
  • Assuming the SID changes when the username changes. Renaming an account does not change its SID. If you are matching permissions after a rename, the old SID still applies to the same account.
  • Typing the username with the wrong case or spacing. The wmic useraccount where name=... filter is exact. If the account name has a space or unusual character, quote it and match it precisely, or use the full listing command instead.
  • Forgetting that built-in accounts have their own SIDs. Accounts like Administrator, Guest, and DefaultAccount appear in the list with SIDs of their own. Do not assume the first row belongs to the account you are investigating.

Tips

  • Run whoami /user first when you just need your own SID — it is the shortest path and needs no elevation.
  • To see SIDs alongside account names in one view, use wmic useraccount get name,sid and widen the Command Prompt window if the table wraps.
  • Well-known SIDs such as S-1-5-18 (Local System) and S-1-5-19 (Local Service) appear in permission dialogs and are not tied to a person. Recognising them saves time when you audit folder permissions.
  • When checking registry keys under HKEY_USERS, the subkey name is the user's SID. Matching it to a person is much easier if you copy the SID from the command output rather than reading it by eye.
  • Keep a note of the SID if you are troubleshooting a recurring permissions problem; it is stable and makes future comparisons faster.

Troubleshooting

If whoami /user returns an error, make sure you are running Command Prompt as your own signed-in account and not inside a restricted environment. If wmic is not recognized, your Windows build may have removed the tool; use the PowerShell command Get-LocalUser | Select-Object Name, SID instead. If lusrmgr.msc does not open, you are likely on Windows Home, where the snap-in is not included — the command-line methods work on every edition.

If the account you want does not appear in the local list, it is probably a domain or Microsoft account. Sign in as that user and run whoami /user, or ask your administrator to check Active Directory. If the SID you copied does not paste correctly, copy it again from the console and avoid retyping; one wrong digit changes the identifier entirely.

Frequently Asked Questions

Does a user's SID change if I rename the account?

No. The SID is assigned when the account is created and stays the same through renames. That is why permissions keep working after a username change.

Can I find a SID without administrator rights?

Yes, for your own account. Running whoami /user works as a standard user. Listing all local accounts with wmic or Get-LocalUser may require elevated rights on some systems.

Why does my SID start with S-1-5-21?

That prefix identifies a local or domain account on a Windows machine. The numbers after it are unique to the machine or domain and to the account itself.

How do I find the SID for a Microsoft account?

Sign in with that account and run whoami /user. The SID shown belongs to the local profile tied to that Microsoft account on this PC.

Can I look up a SID from a folder's permissions?

Yes. Open the folder's Properties, go to the Security tab, and check the user or group names listed. If a name shows as a long S-1-5-21 string, that is an unresolved SID, often from a deleted or unavailable account.