Pcornel
Windows · Users & Groups

SID

Cheat sheet · https://pcornel.dk/topic.php?topic=2984

Back to the Topic

Answer

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.

Remember

  • 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.

First checks

  • Get-LocalUser — local accounts
  • Get-LocalGroupMember Administrators — local admins
  • whoami /all — current user, SID, groups, privileges
  • net user <user> /domain — domain account details

Verify in this order

account → SID (domain/machine + RID) → used in tokens and ACLs

Where it usually breaks

First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.

SID interpretation

ItemMeaningBoundary
Friendly nameHuman-readable labelcan be renamed/ambiguous
SIDCanonical security identityused in tokens and ACLs
RIDRelative identifier portiondistinguishes principals under a common authority
Unresolved SIDName lookup failedmay reference deleted/offline principal
Well-known SIDStandard identitystable semantic role across systems

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2984

Confirmation

Confirm action

Continue?