Skip to main content
Level 4
Oct 16, 2015 2:27 AM UTC
Solved

Find all users who have access to a folder

We need to find all user profiles who have access to a folder to send notification to them when any asset is uploaded in that folder.

What's the best and most efficient way of achieveing this?

Currently we get all users and then loop through them to filter users with access. Is there an alternate way because i think this way it's expensive.(if there are 10000 users, it will loop 10000 times and maybe only 2 users have access to that folder)

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
gopalKaAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

When you access 

http://localhost:8080/test/node.eacl.json

 

 it will give effective permissions for all users at that node.

Please refer to http://sling.apache.org/documentation/bundles/managing-permissions-jackrabbit-accessmanager.html

1 reply

gopalKaAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

When you access 

http://localhost:8080/test/node.eacl.json

 

 it will give effective permissions for all users at that node.

Please refer to http://sling.apache.org/documentation/bundles/managing-permissions-jackrabbit-accessmanager.html

Translate