Use SID when two identical names may refer to different principals, when an ACL shows an unresolved SID, when an account was deleted/recreated, or when tracing group/token authorization.
SID
A SID is the Windows security identifier for a user, group, computer or other security principal. ACLs and access tokens use SIDs because names can change or be ambiguous; the SID is the canonical identity used by access checks.
1. whoami /user — SID.
2. Resolve: (New-Object Security.Principal.SecurityIdentifier 'S-1-…').Translate([Security.Principal.NTAccount]).
3. Orphaned SID in ACLs → deleted account.
4. Cloned machines need unique machine SIDs (sysprep).
5. Well-known SIDs: S-1-5-18 SYSTEM, -32-544 Administrators.
account → SID (domain/machine + RID) → used in tokens and ACLs
Evaluate group/token state and the complete DACL/share permission path.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not use name equality as evidence of identity. Do not assume an unresolved SID is harmless or stale. Do not recreate an account expecting the old ACL entries to automatically match the new SID.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Resolve the SID, verify its scope, then trace it into the token and target security descriptor. For an unresolved ACL entry, determine whether the identity was deleted, belongs to an unavailable domain or is intentionally retained before changing it.
Step 2 Layered verification Verify boundary
SID — layered verification closure. Close the Topic in layers: local authoritative state → adjacent dependency/peer/backend → effective or programmed state → original workload/request → return path or regression. For every observation record what it supports, what it does not show, and the next discriminating check. A configuration read-back, successful job, established session or healthy status closes only the layer it directly observes.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Windows access checks use SIDs, not friendly names.
- Renaming a principal normally keeps its SID; deleting/recreating it does not.
- Local account SIDs are machine-scoped; domain account SIDs are domain-scoped.
- An unresolved SID in an ACL can be evidence of a deleted/unreachable principal, not automatically corruption.
Get-LocalUser— local accountsGet-LocalGroupMember Administrators— local adminswhoami /all— current user, SID, groups, privilegesnet user <user> /domain— domain account details
ReferenceWhat it is1 section · depth on demand
Core model
SIDs are the durable identity keys of Windows security. Human-readable names are resolved to and from SIDs, but access tokens, DACLs, ownership and many security records ultimately carry the SID.
ReferenceWhy it matters1 section · depth on demand
In depth
A SID (security identifier) uniquely identifies a user, group, computer or other security principal. Windows uses SIDs, not names, in access control lists and tokens, so renaming an account keeps its permissions while recreating it with the same name does not.
| SID | Meaning |
|---|---|
| S-1-5-18 | LocalSystem |
| S-1-5-32-544 | Builtin\Administrators |
| S-1-5-domain-500 | Domain/local Administrator account |
| S-1-5-domain-512 | Domain Admins |
| S-1-1-0 | Everyone |
| S-1-5-11 | Authenticated Users |
whoami /user
Get-ADUser ahansen | Select-Object SID
(New-Object System.Security.Principal.SecurityIdentifier('S-1-5-32-544')).Translate([System.Security.Principal.NTAccount])
Unresolved SIDs in ACLs (shown as raw S-1-5-...) belong to deleted accounts — clean them up. Cloned machines must be sysprepped so they do not share machine SIDs in ways that matter for some software.
ReferenceImportant terms & boundaries2 sections · depth on demand
Security boundary
A local user SID normally reflects the local machine security authority plus a RID; a domain user SID reflects the domain authority plus a RID. This is why two user accounts with the same name can be unrelated principals and why recreating an account does not restore permissions tied to the old SID.
Mechanics
For Users & Groups → SID, stable identity is computer/domain identity plus SID/GUID/resource/provider identity and exact Windows edition/build where behavior is version-sensitive.
The operating invariants are: target identity is explicit, authoritative configuration is known, pending restart/replication is visible, effective state is independently verified and native errors/events are preserved.
Keep desired configuration, effective policy, current runtime state and user/workload-visible behavior as separate facts.
Preserve computer/domain/object identity, SID/GUID/resource names, timestamps, provider/source and per-node results so repeated display names do not mislead.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Users & Groups → SID. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
SID interpretation
How SIDs help distinguish Windows security principals.
| Item | Meaning | Boundary |
|---|---|---|
| Friendly name | Human-readable label | can be renamed/ambiguous |
| SID | Canonical security identity | used in tokens and ACLs |
| RID | Relative identifier portion | distinguishes principals under a common authority |
| Unresolved SID | Name lookup failed | may reference deleted/offline principal |
| Well-known SID | Standard identity | stable semantic role across systems |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture computer/domain identity, object GUID/SID/resource name where relevant, version/build, effective state, native status/error, event provider/ID, timestamp and correlation/activity identifiers.