Use this topic for user-object identity, naming, enable/disable state, account attributes, SID/UPN concepts and directory-side user troubleshooting.
Users
A user object combines directory identity data with security-principal properties such as SID and logon names. Authentication validates credentials; authorization evaluates the resulting security context against resource permissions.
1. Get-ADUser <u> -Properties Enabled,LockedOut,PasswordLastSet,LastLogonDate.
2. Locked: Unlock-ADAccount; source: Event 4740 on the PDC.
3. Group membership: Get-ADPrincipalGroupMembership.
4. OU placement for GPOs.
5. Stale accounts: Search-ADAccount -AccountInactive.
user object → authentication → groups in token → GPOs by OU
Test the relevant authentication protocol or compare another DC if replication timing is suspected.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not reset passwords, unlock accounts or alter group memberships until the actual failing step is confirmed. These changes can mask the original cause and introduce new state.
Operational reference
Fast context before you go deeper.
Get-ADUser alice -Properties LastLogonDate,PasswordLastSet,LockedOut,MemberOfVerification & 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
Read the user from a known DC, confirm SID/names/account state, then perform a controlled authentication test and independently verify authorization if access to a resource is the real goal.
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.
- User object existence is separate from account enabled state and credential validity.
- SID is the durable Windows security identifier; display name/UPN can change.
- UPN, sAMAccountName and distinguished name serve different purposes.
- Group membership in AD is not identical to the groups present in an already-issued access token.
Get-ADDomain— domain details and FSMO holdersGet-ADDomainController -Filter * | Select HostName,Site,IsGlobalCatalog— DCsdcdiag /v /e /q— DC health tests (errors only with /q)repadmin /replsummary— replication summarynltest /dsgetdc:<domain>— DC locator
ReferenceWhat it is1 section · depth on demand
Core model
User objects are both directory records and security principals. Troubleshooting should keep object identity, account state, credentials, authentication protocol, token issuance and resource authorization as separate checkpoints.
ReferenceImportant terms & boundaries2 sections · depth on demand
What the evidence shows
Use SID or other stable identifiers when ambiguity exists. Record the DC that supplied account state because replicated changes can create short-lived differences between replicas.
In depth
User account management in AD:
New-ADUser -Name 'Alice Jensen' -SamAccountName ajensen -UserPrincipalName ajensen@corp.example.com -Path 'OU=Users,OU=Corp,DC=corp,DC=example,DC=com' -AccountPassword (Read-Host -AsSecureString) -Enabled $true
Get-ADUser ajensen -Properties LastLogonDate,PasswordLastSet,LockedOut,MemberOf
Search-ADAccount -LockedOut; Unlock-ADAccount ajensen
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -UsersOnly
Set-ADAccountPassword ajensen -Reset -NewPassword (Read-Host -AsSecureString); Set-ADUser ajensen -ChangePasswordAtLogon $true
LastLogonDate (lastLogonTimestamp) replicates with up to ~14 days lag — fine for stale-account reports, not for exact last logon.
ReferenceConfiguration & state1 section · depth on demand
User commands
New-ADUser -Name "Alice Hansen" -SamAccountName alice -UserPrincipalName alice@example.com -Path "OU=Users,DC=example,DC=com" -Enabled $true -AccountPassword (Read-Host -AsSecureString)
Get-ADUser alice -Properties LastLogonDate,PasswordLastSet,LockedOut,MemberOf
Unlock-ADAccount alice
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -UsersOnly
Documented example, not captured output. Disable rather than delete leavers first; review inactive accounts monthly.
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 Active Directory Domain Services → Users. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/ · 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
Active Directory Domain Services → Users reference map
Fast lookup boundaries for Active Directory Domain Services → Users.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| DN | Directory location | changes on move/rename |
| SID | Security identity | used by ACL/token |
| UPN | User-style logon name | can differ from DNS domain |
| Account state | Enabled/locked/expiry | not password/auth proof |