Use this branch when you need to determine which account Windows is actually using, whether the principal is local or domain-scoped, which groups contribute to authorization, why the same username maps to different identities, or why a profile problem is being mistaken for an account problem.
Users & Groups
Users & Groups explains the Windows security-principal model behind sign-in and access decisions. A user account has an identity such as a SID; group membership expands the SIDs and privileges carried in an access token; a user profile stores per-user state but is not the account itself.
1. Local or domain account? whoami.
2. Exists and enabled: Get-LocalUser / Get-ADUser.
3. Groups: whoami /groups (new logon).
4. Admin rights: Get-LocalGroupMember Administrators.
5. Profile loads correctly?
account (local SAM or AD) → authentication → token with SIDs → access
Inspect the token/resource authorization boundary or the profile-load boundary, depending on the symptom.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not infer identity from the visible username alone. Do not assume a group change instantly updates existing processes. Do not equate Administrators membership with an elevated token. Do not delete/recreate a profile until you have showed the account is healthy and the profile boundary is actually failing.
Operational reference
Fast context before you go deeper.
net userPrimary Commands
Configuration and operational commands for this Topic.
net userReferenceDisplays or manages Windows user accounts. With no username it lists local accounts; with a username it displays account properties, and state-changing switches can create, modify or delete accounts.
Use when: Use read-only forms to confirm that the intended user exists and inspect account properties. Use state-changing forms only after verifying account scope and preserving the existing account/SID implications.
Quick note: Prefer SID-aware verification after identity changes. For detailed domain-account administration, use the AD-specific Windows branch/tools.
Windows / Windows Server / PowerShell · configurationnet localgroupReferenceDisplays or manages local Windows groups and their membership. It is useful for proving configured local group membership before checking whether a fresh access token contains the group SID.
Use when: Use net localgroup <group> to inspect configured membership. Use change forms only after confirming the target computer, group and principal scope.
Quick note: For Administrators membership, separate configured membership from UAC/elevation state.
Windows / Windows Server / PowerShell · configurationVerification & 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
Start from the exact failing process or sign-in. Confirm whether the account is local or domain-scoped, resolve the SID, inspect relevant group membership, then recreate the logon/process if membership changed. Finally test the target resource from that same context. If the symptom is desktop/profile-specific, verify profile load separately from authentication.
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.
Subtopics
Go one level deeper into this subject.
Local Windows user accounts: machine scope, local SID identity, credentials, group membership and local sign-in behavior.
Subtopic Local GroupsLocal Windows groups: machine-scoped group SIDs used to aggregate users and other principals for rights and permissions.
Subtopic Microsoft AccountsMicrosoft account sign-in on Windows: cloud-backed identity linked to a local Windows security context and user profile.
Subtopic Domain AccountsActive Directory domain user accounts on Windows: domain SID identity, domain authentication, group membership, cached logon and local resource authorization.
Subtopic User ProfilesWindows user profiles: per-user filesystem and registry state, profile loading, HKCU mapping and profile-vs-account troubleshooting.
Subtopic SIDWindows Security Identifiers (SIDs): stable principal identifiers used in access tokens, ACLs, ownership and account/group authorization.
Subtopic Built-in AccountsWindows built-in and system-managed accounts: predefined principals with special roles, known SIDs/RIDs and security implications.
Subtopic AdministratorsWindows local Administrators group: administrative group membership, privileges, UAC filtered/elevated tokens and authorization boundaries.
Subtopic Local Users and GroupsLocal Users and Groups management surface for inspecting and managing local accounts, groups and membership on supported Windows editions.
Subtopic Account TroubleshootingSystematic Windows account troubleshooting: principal scope, SID, authentication, group/token state, profile load and authorization boundaries.
- Windows authorizes security principals by SID, not by the display name alone.
- Local and domain accounts can have the same username while remaining completely different principals.
- Group membership affects the access token; changing membership may require a new sign-in or new token before a running process sees the change.
- A user profile is per-user runtime/configuration state and can fail independently of the account.
- Administrator-group membership does not mean every process is elevated; UAC is a separate boundary.
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
Windows treats accounts and groups as security principals. Names are convenient labels, but authorization is evaluated with SIDs in an access token. Local accounts are scoped to one computer, domain accounts are issued by Active Directory, and Microsoft accounts provide cloud-backed sign-in while still participating in the local Windows security model. Groups simplify authorization by adding group SIDs and privileges to a user token.
ReferenceImportant terms & boundaries2 sections · depth on demand
Security boundary
Keep five objects distinct: account (the identity record), SID (stable security identifier), group membership (authorization aggregation), access token (the runtime security context of a process) and user profile (per-user files/settings). Most confusing failures come from proving one object and assuming the rest match.
In depth
Windows account types:
| Type | Stored in | Identifier |
|---|---|---|
| Local user | SAM database on the machine | S-1-5-21-<machine>-RID |
| Domain user | Active Directory | S-1-5-21-<domain>-RID |
| Microsoft account / Entra ID | Cloud, cached locally | S-1-12-1-… (Entra) |
| Built-in service accounts | System | S-1-5-18 SYSTEM, -19 LocalService, -20 NetworkService |
| Virtual/managed service accounts | AD (gMSA) or system | NT SERVICE\<name> |
Windows authorises by SID, not name: renaming an account keeps its permissions; deleting and recreating with the same name does not.
whoami /all
Get-LocalUser | Select Name,Enabled,SID
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. 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
Windows identity boundary map
Separate account source, SID, token and profile before troubleshooting access.
| Item | Meaning | Boundary |
|---|---|---|
| Local account | Local machine SAM / local account database | machine-scoped SID; usable without domain connectivity |
| Microsoft account | Cloud identity linked to Windows sign-in | Windows creates/uses a local security context and profile for the sign-in |
| Domain account | Active Directory domain | domain SID plus RID; domain authentication/policy applies |
| Group | Collection of security principals | group SID can be present in token and grant/deny access |
| User profile | Per-user files and registry state | not the identity itself; can be corrupt while the account is valid |