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
BedrockMission!

Learn more

View all

Sign in to view all badges

Touch UI Pathbrowser based on user permissions

Nithyasri_K
Level 2
Level 2

When a pathbrowser is opened, I want to display only the content nodes for which the user has access to. 

Currently, it displays all the content nodes under a rootpath.

5 Replies
asutosh_jena
Community Advisor
Community Advisor

Hi @Nithyasri_K 

 

When the pathfield is opened, the content path configured with "rootPath" property should be displayed. It should not be driven based on the content path that the user has access.

What is the use case that you want to restrict the content path based on the user permission?

 

Thanks!

Nithyasri_K
Level 2
Level 2
We have a business requirement, to restrict the paths shown in touch UI pathbrowser based on user permissions.
Vijayalakshmi_S
Community Advisor
Community Advisor

Hi @Nithyasri_K,

I tried in my local 6.5.0 and could see both Coral UI 3 pathfield(granite/ui/components/coral/foundation/form/pathfield) and pathbrowser(granite/ui/components/coral/foundation/form/pathbrowser) respects path permission OOTB. 

Could you please share which AEM version and pathfield/browser resource you are using?

Nithyasri_K
Level 2
Level 2
I am using "granite/ui/components/coral/foundation/form/pathbrowser" in AEM 6.4.8
Vijayalakshmi_S
Community Advisor
Community Advisor

@Nithyasri_K,

Can you cross check once with any specific user for behavior in AEM Sites console.

Ignore if you checked already.