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