The SID is built in a hierarchy structure of four parts:
Revision – the version of a SID structure. Windows NT and later starts with 1.
Identifier Authority – Identifies the Authority that can issue SID for this type of Security Principal. The value for Windows NT and later is 5 (NT Authority).
Subauthorities – Identifies the domain in the forest. Usually called the Domain Identifier.
Relative Identifier (RID) – The last part that identifies the particular account or group in the domain.
If we take a look at a user object in the attribute editor we can see the users SID stored in the objectSid attribute (the same goes for computers and groups).
reference:https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/security-identifiers-in-windows
https://secureidentity.se/security-principal-and-the-sid/
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.