Folder ACL doesn’t block access to descendant assets in AEM Assets
Users who can’t browse a restricted folder in Adobe Experience Manager (AEM) Assets can still access descendant assets by using repository-backed asset URLs. This issue occurs when the effective Access Control Lists don’t deny jcr:read on all required descendant nodes, or when another group membership or allow rule grants access. To fix this, review the user’s effective permissions, apply a supported subtree or path restriction, deploy the updated RepoInit configuration, and test the exact asset URLs with a non-administrator user.
Description description
Environment
- Adobe Experience Manager Assets
- Adobe Experience Manager as a Cloud Service
- Oak repository authorization
- RepoInit access-control configuration
Issue/Symptoms
- You can’t see a restricted asset folder in the AEM Assets console.
- You can access an asset inside the restricted folder by entering its repository-backed URL directly.
- You can view asset metadata, previews, or renditions even though you don’t have the intended folder-level access.
- You see that an ACL uses
rep:itemNames, but the restriction doesn’t cover all required descendant assets and nodes.
Cause
The effective ACL doesn’t deny jcr:read on every required descendant node beneath the restricted folder. An ACL that uses rep:itemNames affects matching item names and doesn’t automatically apply the same restriction to every descendant asset and node in the folder subtree. Permission inheritance, additional group memberships, user-specific access-control entries, or conflicting allow rules can also permit access.
Resolution resolution
Follow the steps below to resolve the issue:
-
Review the user’s group memberships and all effective permissions on both the restricted folder and the affected asset by using the AEM permissions interface.
-
To restrict access to all assets within specific subfolders, such as
expiredorsuperseded, avoid using only item-name restrictions because they don’t apply the same restriction recursively to every descendant. -
If
rep:subtreesis supported in the target AEM environment, use it to denyjcr:readfor the relevant user group on the required subtrees beneath the common parent path. For example:code language-none set ACL on /content/dam/<brand>/<folder> deny <user-group> jcr:read restriction(rep:subtrees, /expired, /superseded) end -
Replace
<brand>,<folder>, and<user-group>with the values appropriate for the target environment. -
If
rep:subtreesisn’t supported, use scopedrep:globrestrictions to target each restricted folder and its descendants. -
Adjust the paths and group names as required for the folder structure.
-
Deploy the updated RepoInit script to a Development environment.
-
Test the updated ACLs with a non-administrator user from the affected group and confirm that the user can’t browse to the restricted folder, access the restricted assets through direct repository-backed URLs, load the restricted asset metadata or renditions, or download the restricted assets. Also confirm that the user can still access assets in other permitted folders.
-
Review the effective permissions on the restricted folder, a child asset, and its
jcr:contentnode. Confirm that no conflicting allow rules or group memberships grant access. -
Adjust the ACLs as required if the folder structure varies or a common parent path doesn’t exist.
-
Validate the changes in a non-production environment before deploying them to Production.