Use it when a file, folder or share access result does not match the visible permissions, or when there is pressure to apply broad ACL resets without knowing the failed boundary.
Permission Troubleshooting
Permission Troubleshooting is the systematic path for Windows Access Denied and unexpected access. It proves the requester/token first, then evaluates the exact requested right through share and NTFS/object ACL layers before considering ownership or elevation recovery actions.
1. Reproduce with the user and exact path.
2. whoami /groups in the user's session (new logon after changes).
3. icacls path and parents; share permissions for UNC.
4. Process Monitor for ACCESS DENIED on the exact object.
5. Fix the smallest thing (group or ACE).
user token → share → NTFS path walk → object ACL → result
If authorization should succeed, continue to file lock, encryption, connectivity, application or filesystem health evidence.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Broad Full Control grants, recursive resets and ownership takeover can make the symptom disappear while destroying the original evidence and intended security. If all ACL layers should allow access, stop editing permissions and move to the next non-ACL boundary.
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
Capture before-state with the affected principal. Reproduce the exact operation, inspect share/NTFS ACLs and inheritance, then make one narrow change only if the evidence points to that boundary. Re-run the same test and record the after-state.
Step 2 Known-good, broken and when it is fixed Verify boundary
Known-good means the intended principal has exactly the required effective rights through the intended inheritance/share model and the original operation succeeds with a fresh, expected token. Broken evidence is a conflicting deny, missing inherited/explicit allow, wrong service identity or share/NTFS intersection blocking access. The limit of what it shows is least privilege: success after broad temporary rights is not closure until rights are reduced to the intended set and the operation still succeeds.
Step 3 Native failure isolation and next-check logic Narrow the fault
For Access Denied, determine whether the failure is local NTFS, share-level or application/service identity. Inspect explicit and inherited ACEs and test effective access for the actual principal; if elevation changes the result, branch to token/UAC rather than rewriting the ACL. Avoid adding Everyone/Full Control as a diagnostic shortcut. If permissions look correct, check file locks, EFS, Controlled Folder Access or service-specific authorization before assuming ACL corruption.
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.
- Reproduce with the affected identity and exact path.
- Prove the runtime token before changing the resource ACL.
- Local paths and UNC paths can traverse different authorization layers.
- Capture owner/DACL/inheritance before remediation.
- Access Denied is not always an ACL failure; locks, encryption, offline resources or application behavior can look similar.
Get-Acl <path> | fl— owner and ACLicacls <path>— ACEs with inheritance flagswhoami /groups— groups in the current tokenGet-SmbShareAccess <share>— share permissions
ReferenceWhat it is1 section · depth on demand
Core model
Permission troubleshooting should preserve the security model rather than destroy it. Start with the affected user/process and the exact path. Then identify every authorization layer the request crosses and stop at the first layer that contradicts the expected result.
ReferenceHow it works1 section · depth on demand
How it works
Windows authorization combines the caller token with explicit/inherited NTFS ACL entries, deny/allow ordering semantics, ownership/privileges and—across SMB—share permissions. Effective access is calculated for the specific identity and object; an administrator membership does not bypass every ACL, and UAC can change the token presented by an elevated versus unelevated process. Preserve object path, owner, ACL inheritance and the exact user/token before modifying permissions.
ReferenceImportant terms & boundaries3 sections · depth on demand
Security boundary
For local NTFS access, the path is primarily token → object DACL. For SMB, add the share layer. UAC can alter the process token; ownership can enable recovery; neither should be used as a substitute for explaining the actual DACL.
In depth
Read the ACL precisely
C:\> icacls D:\Shares\Finance
D:\Shares\Finance CORP\FS-Finance-Modify:(OI)(CI)(M)
CORP\FS-Finance-Read:(OI)(CI)(RX)
BUILTIN\Administrators:(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
CORP\bob:(DENY)(W)
| Code | Meaning |
|---|---|
(OI) / (CI) | Object / container inherit — applies to files / subfolders |
(IO) | Inherit only — not on this folder itself |
(I) | Inherited from the parent |
F / M / RX / R / W | Full / Modify / Read & execute / Read / Write |
(DENY) | Explicit deny — evaluated before allows |
icacls displays and modifies file and folder DACLs.
Evaluation order
1. Explicit deny
2. Explicit allow
3. Inherited deny
4. Inherited allow
So an explicit allow on a subfolder beats an inherited deny from the parent, and an explicit deny beats everything. Over the network, the share permission is applied on top (most restrictive wins).
Fix without making it worse
icacls D:\Shares\Finance /save C:\Temp\finance-acl.txt /t /c # backup ACLs
icacls D:\Shares\Finance /grant "CORP\FS-Finance-Modify:(OI)(CI)M"
icacls D:\Shares\Finance\Archive /inheritance:e # re-enable inheritance
icacls D:\Shares\Finance /restore C:\Temp\finance-acl.txt # roll back (run on the parent)
takeown /f D:\Shares\Finance\Orphan /r /d y # last resort for orphaned owner
Typical causes of "access denied"
| Cause | Clue |
|---|---|
| Group membership not yet in the token | Works after logoff/logon; whoami /groups lacks the group |
| Broken inheritance on a subfolder | icacls shows no (I) entries there |
| Explicit deny for a broad group | (DENY) entries |
| Owner is a deleted account (orphan SID) | S-1-5-21-... instead of a name |
| UAC filtered token for admins | Works when elevated |
| File encrypted with EFS by another user | cipher /c file |
Grant to groups, not users; that keeps ACLs short and auditable.
*The sample icacls entries use fictional accounts to illustrate inheritance and permissions, not an exported filesystem ACL.*
Method
Permission troubleshooting explains why a user can or cannot access a file, folder, share, registry key or service.
1. Identify the exact object and operation (read, write, delete, execute).
2. Check effective access for the user (Advanced Security → Effective Access).
3. For network access, combine share permissions and NTFS — the most restrictive wins.
4. Check group membership and whether the user has logged on again since changes.
5. Look for explicit Deny entries and broken inheritance.
6. Check ownership and UAC (admins without elevation use a filtered token).
whoami /groups
icacls D:\Shares\Finance
Get-Acl D:\Shares\Finance | Select-Object -ExpandProperty Access
(Get-ADUser ahansen -Properties MemberOf).MemberOf
Enable object access auditing temporarily (event 4656/4663) to see failed access attempts with the exact rights requested.
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 Permissions & Access Control → Permission Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/win32/secauthz/access-control · 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
Permission troubleshooting order
A low-risk sequence that preserves evidence.
| Item | Meaning | Boundary |
|---|---|---|
| 1. Identity/token | SID, groups, elevation | prove requester |
| 2. Path | Local vs UNC, target object | prove authorization route |
| 3. Share ACL | Remote SMB only | prove share layer |
| 4. NTFS DACL | Owner, ACEs, inheritance | prove filesystem layer |
| 5. Controlled remediation | Smallest justified change | verify and preserve security |