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:

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

  2. To restrict access to all assets within specific subfolders, such as expired or superseded, avoid using only item-name restrictions because they don’t apply the same restriction recursively to every descendant.

  3. If rep:subtrees is supported in the target AEM environment, use it to deny jcr:read for 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
    
  4. Replace <brand>, <folder>, and <user-group> with the values appropriate for the target environment.

  5. If rep:subtrees isn’t supported, use scoped rep:glob restrictions to target each restricted folder and its descendants.

  6. Adjust the paths and group names as required for the folder structure.

  7. Deploy the updated RepoInit script to a Development environment.

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

  9. Review the effective permissions on the restricted folder, a child asset, and its jcr:content node. Confirm that no conflicting allow rules or group memberships grant access.

  10. Adjust the ACLs as required if the folder structure varies or a common parent path doesn’t exist.

  11. Validate the changes in a non-production environment before deploying them to Production.

recommendation-more-help
experience-cloud-kcs-help-kbarticles