Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Find all users who have access to a folder

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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