Using REST or CSOM. Can I determine the following
1. Which webs inside a site collection have unique permissions.
2. which items (folder, documents, libraries) have unique permissions.
3. If the item has unique permissions, then who has access to that item.
Doing this in SOM is quite easy because you can check the hasuniqueroleassignments property on every item in a site collection. Wonder how can this be done with CSOM / REST.
val it: unit=()