A common reason you might want to find the security identifier (SID) for a user account in Windows is to determine which key under HKEY_USERS in the Windows registry you should look for user-specific registry data. Matching SIDs to user names is easy with the wmic command, which is available from the Command Prompt in most versions of Windows.
How to find your users' security ID (SID) in Windows 10?
Follow these simple steps to display a table of user names and their associated SIDs. It will probably only take a minute, maybe less, to find a user's SID in Windows via WMIC:
Open Terminal (Windows 11) or open Command Prompt in older Windows versions.
If you are using a keyboard and mouse in Windows 11/10/8, the fastest way is via the Power User Menu. This menu can be accessed via the shortcut WIN+X.