How search assets in All folder how ever have access permission on one folder | Community
Skip to main content
Level 4
July 7, 2020
Solved

How search assets in All folder how ever have access permission on one folder

  • July 7, 2020
  • 1 reply
  • 1088 views

Hi Experts,

 

we have one requirement like one user group have allowed to see the one folder in AEM DAM. However same user want to search the asset from entire DAM (from all folder ) on pathfield popup. How we can achieve this?

 

Thanks

~S

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nupur_Jain

Hi @sameryadav 

 

When we open pathfield popup, request goes to get the path heiarachy, the request looks something like this:

http://localhost:4502/mnt/overlay/granite/ui/content/coral/foundation/form/pathfield/picker.html?_charset_=utf-8&path=&root=%2fcontent&filter=hierarchyNotFile&selectionCount=single&_=1595528365580

 

Now if you look at the path /libs/granite/ui/content/coral/foundation/form/pathfield/picker, it points to sling:resourceType to  /libs/granite/ui/components/coral/foundation/picker/picker.jsp.

 

User session is used to extract items for pathfield, so you will have overlay this jsp to apps to use some system user to get results for folders which are not accessibe to current user.

 

Hope it helps!

Thanks!

Nupur

1 reply

Nupur_Jain
Adobe Employee
Nupur_JainAdobe EmployeeAccepted solution
Adobe Employee
July 23, 2020

Hi @sameryadav 

 

When we open pathfield popup, request goes to get the path heiarachy, the request looks something like this:

http://localhost:4502/mnt/overlay/granite/ui/content/coral/foundation/form/pathfield/picker.html?_charset_=utf-8&path=&root=%2fcontent&filter=hierarchyNotFile&selectionCount=single&_=1595528365580

 

Now if you look at the path /libs/granite/ui/content/coral/foundation/form/pathfield/picker, it points to sling:resourceType to  /libs/granite/ui/components/coral/foundation/picker/picker.jsp.

 

User session is used to extract items for pathfield, so you will have overlay this jsp to apps to use some system user to get results for folders which are not accessibe to current user.

 

Hope it helps!

Thanks!

Nupur

July 29, 2020
I am checking the approach that suggested. I will update if it will works. Thanks