Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 1
I am checking the approach that suggested. I will update if it will works. Thanks